Nauman Afsar
Nauman Afsar

Reputation: 49

ZipException: duplicate entry: com/google/android/gms/internal/measurement/zzabn.class

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/measurement/zzabn.class

Upvotes: 4

Views: 9536

Answers (3)

Otieno Rowland
Otieno Rowland

Reputation: 2250

Rather than downgrade or upgrade library, it would better to exclude one or more of the same class from different versions. For example, if you know from which module the class is from, you can use:

compile('com.google.android.gms:play-services-auth:15.0.0') {
    exclude group: 'com.google.android.gms', module: 'module.of.dependecy,withconfllict'
}

Upvotes: 0

Dario Ceccoli
Dario Ceccoli

Reputation: 304

I solved by upgrading all the firebase dependencies on build.gradle from 15.0.0 to 15.0.2 where available.

Go to https://firebase.google.com/docs/android/setup for latest versions available and note that latest version for com.google.firebase:firebase-ads is 15.0.0 and latest version for com.google.firebase:firebase-messaging is 15.0.2

Upvotes: 12

Amol Jindal
Amol Jindal

Reputation: 106

Delete assets folder entry in the android studio (not from actual folder location). Then do a clean build.

Upvotes: 0

Related Questions