我正在为我的项目使用asne google plus library。它使用较旧版本的Google Play服务。Android,一个旧谷歌播放服务与谷歌地图冲突的图书馆
当我加入谷歌的地图,新版本,gradle这个构建失败,此消息:
Error:Execution failed for task ':app:processDebugResources'.
Error: more than one library with package name 'com.google.android.gms'
我依赖我app.gradle:
compile 'com.github.asne:asne-googleplus:0.3.3'
compile 'com.google.android.gms:play-services-maps:8.3.0'
compile 'com.google.android.gms:play-services-location:8.3.0'
当我做asne
这样的:
compile ('com.github.asne:asne-googleplus:0.3.3') {
transitive = true
}
这个库变得不可见,我不能调用它的方法。
如何解决此冲突?
您不能在一个项目中使用具有不同版本的两个库。尝试更新包含旧库的播放服务库。 – goblin
这怎么可能? –