2017-10-04 5 views
-1
apply plugin: 'com.android.application' 
    apply plugin: 'io.fabric' 

repositories { 
       maven { url 'https://maven.fabric.io/public' } 
      } 
android { 
compileSdkVersion 26 
buildToolsVersion "26.0.1" 

dexOptions { 
    incremental true 

    javaMaxHeapSize "4g" 
} 

defaultConfig { 
    applicationId "com.textmaxx" 
    minSdkVersion 15 
    targetSdkVersion 26 
    versionCode 10 
    versionName "1.9" 
    multiDexEnabled true 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
} 
packagingOptions { 
    exclude 'META-INF/services/javax.annotation.processing.Processor' 
} 
} 

     dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:26.+' 
    compile 'com.android.volley:volley:1.0.0' 
compile 'com.jakewharton:butterknife:7.0.1' 
compile 'com.squareup.picasso:picasso:2.5.0' 

compile 'com.google.firebase:firebase-messaging:9.4.0' 
compile 'com.google.android.gms:play-services:9.4.0' 
compile 'com.android.support:multidex:1.0.1' 
compile 'io.realm:realm-android:0.87.4' 
compile 'com.android.support:recyclerview-v7:26.0.0' 
compile 'com.github.bumptech.glide:glide:3.7.0' 

compile 'de.hdodenhof:circleimageview:2.0.0' 
compile 'com.pnikosis:materialish-progress:1.7' 
compile files('libs/YouTubeAndroidPlayerApi.jar') 
compile 'com.intuit.sdp:sdp-android:1.0.3' 
compile 'com.squareup.retrofit2:retrofit:2.0.2' 
compile 'com.squareup.retrofit2:converter-gson:2.0.2' 

compile 'com.baoyz.swipemenulistview:library:1.3.0' 
compile 'com.jakewharton:process-phoenix:2.0.0' 

compile('com.crashlytics.sdk.android:crashlytics:[email protected]') { 
    transitive = true; 

    compile("com.github.hotchemi:permissionsdispatcher:2.4.0") { 
     exclude module: "support-v13" 
    } 
    annotationProcessor "com.github.hotchemi:permissionsdispatcher-processor:2.4.0" 
} 

} 
    apply plugin: 'com.google.gms.google-services' 

これは私のbuild.gradleです。私はこの問題に直面しています。すべてのcom.android.supportライブラリは、まったく同じバージョンを使用する必要があります。バージョン26.0.1-alpha1,23.0.0が見つかりました。 私はエラーを見つけようとしていますが、いくつかの調査も行いましたが、エラーの原因を特定できませんでした。同じことについて私を助けてください。すべてのcom.android.supportライブラリは、まったく同じバージョンを使用する必要があります。見つかったバージョン26.0.1-alpha1,23.0.0

+0

実行 './gradlewアプリ:次に、あなたはそれを除外することができdependencies'をしてから、このhttps://blog.mindorks.com/avoiding-conflicts-in-android-gradle-dependencies-28e4200ca235をお読みください。すべてのサポートライブラリが同じバージョンであることを確認してください – Raghunandan

+0

@Raghunandanありがとう –

答えて

3

ビルドファイルからは、バージョン23.0.0が含まれていないことがわかります。つまり、あなたが含むライブラリはそれに依存します。依存関係をリストする

実行

./gradlew app:dependencies --configuration compile 

。グラフから、どのライブラリが推移的にそれを引っ張っているかを見ることができます。

dependencies { 
    compile ('<DEPENDENCY>') { 
    exclude group: "<GROUP>", module: "<MODULE>" 
    } 
} 
+0

ありがとうLordRaydenMK –

1

すべてのサポートライブラリのバージョンはbuildToolsVersionである必要があります。 26.a.bの場合、サポートライブラリのバージョンは26.l.mである必要があります。

私はそれが助けて欲しい!

+0

ありがとうございます@Malwinder Singh –

関連する問題