错误:修复版本冲突(谷歌服务插件) [英] Error: fix the version conflict (google-services plugin)
问题描述
错误:这个线程是我的线程,我知道存在版本冲突,但问题仍然存在于Google的新版本之后。任务':app:processDebugGoogleServices'的执行失败。
请通过更新google-services插件的版本来修复版本冲突(有关最新版本的信息,请参阅 https://bintray.com/android/android-tools/com.google.gms.google-services/ )或更新com版本.google.android.gms到10.0.1。
我的 build.gradle(模块:应用程序)
....
依赖项{
编译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.firebas e: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'
As per this SO thread, I know there are version conflicts, but issue still persists after new versions from Google.
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.
My 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'
What changes are required now?
i think you change
compile 'com.google.firebase:firebase-messaging:11.0.4'
这篇关于错误:修复版本冲突(谷歌服务插件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!