processDebugResources'. > Error: more than one library with package name 'com.google.android.gms'

谁说我不能喝 提交于 2020-01-07 02:34:08

问题


I added Firebase Cloud Messaging to my Android app and I'm upgrading my old app from GCM to FCM. I tried the sample app by following the steps in Firebase Console, which works fine.

After embedding same code into the existing code in my app, even though the build is successful, while trying to run the app on a device in Android Studio, I get this error:

getting the error: more than one library with package name 'com.google.android.gms'.

See the dependencies screenshot taken from terminal. I checked the dependencies using

command >gradlew -q dependencies project name:dependencies --configuratio
n compile

Here is the result:

Any suggestion is appreciated.


回答1:


Previously some modules in my app was using old jar files of googleplayservices.

After using google play services with same version like below

dependencies {
    compile 'com.google.android.gms:play-services:9.6.1'
}

I hope it will help some one needed.



来源:https://stackoverflow.com/questions/39897649/processdebugresources-error-more-than-one-library-with-package-name-com-go

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