本文介绍了错误:修复版本冲突(谷歌服务插件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的 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.
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'
这篇关于错误:修复版本冲突(谷歌服务插件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
07-01 17:08