question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

duplicate entry: com/google/android/gms/common/api/zza.class

See original GitHub issue

I’m getting this error when I link the dependency:

Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/common/api/zza.class

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
KendraTangcommented, Dec 23, 2016

@luisfpinto I’m getting this error now, so how did you solve this?


Just spent some time to make things work Orz… I found that “duplicate entry” is because I have compile 'com.google.android.gms:play-services-auth:9.4.0' in my dependencies. And after I update play-services-auth to 10.0.1, problem solved.

0reactions
MinaSamirCapcommented, Aug 24, 2017

In my case there was a library that I used in my project. this library also use google play services dependencies so Igot the error of duplicated entity. ///////// I solve it by adding exclude to the library like this compile (‘com.github.ar-android:DrawRouteMaps:1.0.0’){ transitive = true exclude group: ‘com.google.android.gms’ } hope this helpful for you

Read more comments on GitHub >

github_iconTop Results From Across the Web

com/google/android/gms/common/api/zze.class - Stack Overflow
In my project, there are some duplicate files in different jars or libs, ... "com/google/android/gms/common/api/zze.class" or whole jar.
Read more >
Duplicate class com google android gms internal ... - YouTube
Duplicate class com. google. android. gms.internal.measurement.zzhx found in modules jetified-play-services-measurement-base-20.1.2-runtime ...
Read more >
Duplicate class com.google.android.gms.location ... - YouTube
GooglePlayService# Duplicate #classFix Google Play Service Error | Duplicate class com. google. android. gms.location.places. zza foundHello guys ...
Read more >
Android Multiple dex files define Lcom/google/android/gms/common ...
Android – error duplicate entry: com/google/android/gms/common/api/zze.class. All the Firebase libraries must be the same version. Use version 10.0.0 ...
Read more >
Firebase gives error for duplicate classes with Marketing ...
RuntimeException: Duplicate class com.google.android.gms.internal.firebase_messaging.zza found in modules jetified-firebase-iid-20.1.5-runtime.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found