我試圖將Firebase與Google Play服務,地圖,以及位置和地點一起使用,但每次嘗試更新版本時都會收到此錯誤!Google Play Services android衝突庫
Error:Execution failed for task ':app:processDebugGoogleServices'. Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 10.0.1.
我的搖籃應用水平
compile 'com.google.firebase:firebase-database:10.0.1'
compile 'com.squareup.okhttp3:okhttp:3.8.1'
compile 'com.squareup:otto:1.3.8'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.orhanobut:hawk:2.0.1'
compile 'com.karumi:dexter:4.1.0'
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services-maps:10.2.1'
compile 'com.google.android.gms:play-services-plus:10.2.1'
compile 'com.google.android.gms:play-services-location:10.2.1'
compile 'com.google.android.gms:play-services-places:10.2.1'
compile 'com.bluelinelabs:logansquare:1.3.6'
apt 'com.bluelinelabs:logansquare-compiler:1.3.6'
在底部 apply plugin: 'com.google.gms.google-services'
和頂部apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
項目級別:
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.google.gms:google-services:3.1.0'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
repositories {
jcenter()
maven { url 'https://maven.google.com' }
}
如果我降級爲10.0.1
,但有一個新的它僅適用於:
轉到工具 - > SDK管理器並從那裏更新liberay,而不是在build.gradle中更新lib版本 –