Multiple dex files define Lcom/google/android/gms/internal/measurement/zzabn

10,488

Please update the google-service plugin to:

classpath 'com.google.gms:google-services:3.3.0'

to be able to use the latest version of Firebase and to avoid the errors.

Read the following for more information:

https://android-developers.googleblog.com/2018/05/announcing-new-sdk-versioning.html

Compilation failed to complete:Program type already present: com.google.android.gms.internal.measurement.zzabn

Share:
10,488

Related videos on Youtube

Alexis
Author by

Alexis

Updated on June 27, 2022

Comments

  • Alexis
    Alexis about 2 years

    Since this morning I cannot build my Android app because I get this error

    What went wrong: Execution failed for task ':app:transformDexArchiveWithDexMergerForDebug'. com.android.build.api.transform.TransformException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/measurement/zzabn;

    I have tried bumping the Firebase versions accordingly to 15.0.2 but then I get an other error...

    Task :app:processDebugGoogleServices Found com.google.android.gms:play-services-maps:15.0.0, but version 15.0.2 is needed for the google-services plugin.

    com.google.android.gms:play-services-maps:15.0.2 is not even released yet?

    I have a build to push to production, what is the best way to build the app?

  • Peter Haddad
    Peter Haddad about 6 years
    this is wrong, please see the comments above, this is the right solution: @PeterHaddad bingo updating this classpath 'com.google.gms:google-services:3.3.0' works
  • halfer
    halfer about 6 years
    This was posted by the question author @Peter, and they said it worked for them.
  • Peter Haddad
    Peter Haddad about 6 years
    yes I know but after that I linked him with the other answer that solved his issue
  • Alexis
    Alexis about 6 years
    Yes the build passed but the Firebase crashed wen the app starts