Error: more than one library with package name 'com.google.android.gms' (v. 8.1.0)

末鹿安然 提交于 2019-12-13 04:46:45

问题


I just tried to update play-services-analytics from 7.5.0 to 8.1.0 and just changed the version number in gradle. And what I got:

> Error: more than one library with package name 'com.google.android.gms'
You can temporarily disable this error with android.enforceUniquePackageName=false
However, this is temporary and will be enforced in 1.0

rebuild and clean don't help. I also tried to delete the folder with this library, no effect. If I change the number to 7.8.0 (or back to 7.5.0) it also works well, but not with 8.1.0

Where is my mistake?


回答1:


Most likelay you have another library that depends on version 7.5.0. Try to run

gradlew :you_project_name:dependancies 

To figure it out.



来源:https://stackoverflow.com/questions/32831296/error-more-than-one-library-with-package-name-com-google-android-gms-v-8-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!