Error after Updating play-services “Program type already present: com.google.android.gms.internal.measurement.zzabo”

泄露秘密 提交于 2019-11-28 20:29:14

In my case, I had to update Firebase from version 15.0.0 to 15.0.2 in project's build.gradle:

dependencies {
    ...
    implementation "com.google.firebase:firebase-messaging:15.0.2"
    ...
}

And then in app's build.gradle I had to update google-services from 3.1.1 to 3.3.0:

dependencies {
    ...
    classpath 'com.google.gms:google-services:3.3.0'
    ...
}

You can try using the exact version number following this link:

https://firebase.google.com/support/release-notes/android#latest_sdk_versions

SDK Update - May 2, 2018 - Firebase Android SDKs now have independent version numbers, allowing for more frequent, flexible updates.

I faced the same problem today. Google comes with the new release on 02 may 2018.

Please go to the link and set the version no according to the doc:

https://firebase.google.com/support/release-notes/android#20180502

for e.g.

Firebase Core com.google.firebase:firebase-core:15.0.2

Try using firebase libs version 15.0.2 or higher instead. Also clean your project ./gradlew clean, as well as kill your Gradle daemons: ./gradlew --stop

Wendy Chen

1.Update all the firebase libs according to this release page.

2.Update google location and google map service to 15.0.1.

implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation 'com.google.android.gms:play-services-location:15.0.1'
implementation 'com.google.android.gms:play-services-places:15.0.1'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!