错误:修复版本冲突(谷歌服务插件) [英] Error: fix the version conflict (google-services plugin)

查看:141
本文介绍了错误:修复版本冲突(谷歌服务插件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据




错误:这个线程是我的线程,我知道存在版本冲突,但问题仍然存在于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'c​​om.android.support:appcompat-v7:26.+'
compile'c​​om.android.support.constraint:constraint-layout: 1.0.2'
testCompile'junit:junit:4.12'
compile'c​​om.google.firebas e:firebase-messaging:10.0.1'
compile'c​​om.google.android.gms:play-services-maps:11.0.4'
compile'c​​om.google.android.gms:play- services-location:11.0.4'
}

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


现在需要进行哪些更改?

解决方案我认为你改变了

  compile'c​​om.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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆