2017-04-13 3 views
1

問題を取得しています。すべてのcom.android.supportライブラリは、グラデーションファイルを同期しようとしているときに、全く同じバージョン仕様を使用する必要があります。私の問題を解決する方法を教えてください。私はすでにこの解決策を行ってきましたAll com.android.support libraries must use the exact same version specification。残念ながら私の場合はうまくいきません。以下は私のグラデルです。すべてのcom.android.supportライブラリは全く同じバージョン仕様のグラデルの問題を使用する必要があります

apply plugin: 'com.android.application' 


android { 
compileSdkVersion 23 
buildToolsVersion "25.0.0" 
defaultConfig { 
    applicationId "com.application" 
    minSdkVersion 15 
    targetSdkVersion 23 
    versionCode 1 
    versionName "1.0" 
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 

} 
useLibrary 'org.apache.http.legacy' 

buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
} 
} 

dependencies { 

compile fileTree(dir: 'libs', include: ['*.jar']) 
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
    exclude group: 'com.android.support', module: 'support-annotations' 
}) 
compile 'com.android.support:recyclerview-v7:23.2.0' 
compile 'org.altbeacon:android-beacon-library:2.+' 
compile 'com.google.firebase:firebase-messaging:10.2.1' 
compile 'com.google.android.gms:play-services-gcm:10.2.1' 
compile 'com.google.code.gson:gson:2.7' 
compile 'com.android.support:appcompat-v7:23.2.0' 
compile 'com.android.support:design:23.2.0' 


testCompile 'junit:junit:4.12' 
} 



apply plugin: 'com.google.gms.google-services' 
+0

私にこれを手伝ってくれる人はいませんか?私はまだ解決策を探しています:( – AndroidDev

答えて

1

あなたは

compile 'com.google.android.gms:play-services-gcm:10.2.1' 

を使用しているので、あなたはサポートライブラリのV24との依存関係を持っています。

通常、このコマンドを使用しての依存関係ツリーを確認できます。

./gradlew app:dependencies 
関連する問題