0

I dont know how to resolve this error

Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'. > java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzaac.class

Here are my dependencies

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:design:23.1.1'
compile 'com.google.android.gms:play-services:9.2.1'
compile 'com.google.firebase:firebase-database:10.2.1'
compile 'com.firebase:firebase-client-android:2.4.0'

}

Thank you in advance

Sasso
  • 3
  • 3
  • Possible duplicate - http://stackoverflow.com/questions/26966843/java-util-zip-zipexception-duplicate-entry-during-packagealldebugclassesformult – fabfas Apr 28 '17 at 09:49
  • no i checked it, it's different and didn't help me @fabfas – Sasso Apr 28 '17 at 09:58

1 Answers1

1

You have twice similar libraries of following though different version;

compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:appcompat-v7:24.2.1'

The error message clearly says, you have duplicate entry of following;

com/google/android/gms/internal/zzaac.class

Search this class in your dependencies and make sure only one dependency included.

fabfas
  • 2,200
  • 1
  • 21
  • 21
  • when i deleted one of them, nothing changed – Sasso Apr 28 '17 at 10:15
  • You may included the `com.google.firebase:firebase-database:10.2.1` or other firebase dependency as complete package then there is no need to include the second `compile 'com.google.android.gms:play-services:9.2.1`. Try removing the play-services then see if you get the same error. – fabfas Apr 28 '17 at 10:30
  • when i did so, another error popped up after running the project Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.internal.zzrt.zzg @fabfas – Sasso Apr 28 '17 at 11:14