错误:修复版本冲突(google-services 插件) [英] Error: fix the version conflict (google-services plugin)
问题描述
根据 this SO 线程,我知道存在版本冲突,但在 Google 发布新版本后问题仍然存在.
As per this SO thread, I know there are version conflicts, but issue still persists after new versions from Google.
错误:任务:app:processDebugGoogleServices"的执行失败.请通过更新 google-services 插件的版本来解决版本冲突(有关最新版本的信息可在 https://bintray.com/android/android-tools/com.google.gms.google-services/) 或更新 com.google.android 的版本.gms 到 10.0.1.
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.
我的build.gradle(Module: app)
....
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:appcompat-v7:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'com.google.firebase:firebase-messaging:10.0.1'
compile 'com.google.android.gms:play-services-maps:11.0.4'
compile 'com.google.android.gms:play-services-location:11.0.4'
}
apply plugin: 'com.google.gms.google-services'
现在需要哪些改变?
推荐答案
我觉得你改了
compile 'com.google.firebase:firebase-messaging:11.0.4'
这篇关于错误:修复版本冲突(google-services 插件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!