在我的應用我有這些依賴關係:錯誤的build.gradle與com.google.android.gms:播放服務,地圖:9.4.0
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.package_app.name"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.android.volley:volley:1.0.0'
compile 'com.google.firebase:firebase-core:9.2.0'
compile 'com.google.firebase:firebase-messaging:9.2.0'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.android.support:design:23.2.1'
compile "com.android.support:recyclerview-v7:23.2.1"
compile 'com.android.support:cardview-v7:23.2.1'
compile 'com.google.android.gms:play-services-maps:9.4.0'
}
下面這些dependencise我把
apply plugin: 'com.google.gms.google-services'
但我無法構建應用程序,因爲返回此錯誤。
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 9.2.0.
所以我試圖把
compile 'com.google.android.gms:play-services-maps:9.2.0'
和App的身材,所以我的問題是: 爲什麼我不能使用的服務,地圖最後versione?
ThankYou!我的問題是沒有注意到Firebase的版本。 – LorenzoBerti
很高興我能夠幫助 –