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

前端 未结 5 1210
星月不相逢
星月不相逢 2020-12-14 08:48

I updated play-services dependencies to version 15.0.0 and also added play-services-safetynet to my app.gradle. After that i always get

Program type

相关标签:
5条回答
  • 2020-12-14 09:16

    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'
        ...
    }
    
    0 讨论(0)
  • 2020-12-14 09:20

    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.

    0 讨论(0)
  • 2020-12-14 09:21

    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

    0 讨论(0)
  • 2020-12-14 09:28

    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

    0 讨论(0)
  • 2020-12-14 09:32

    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'
    
    0 讨论(0)
提交回复
热议问题