Dave's Brain

Browse - Programming Tips - Error:Execution failed for task ':myApp:transformClassesWithJarMergingForDebug'.

Date: 2016sep11
OS: Android

Q.  Error:Execution failed for task ':myApp:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/common/internal/zzv$zza$zza.class

How can I avoid this error that occurs when I try to run my app in Android Studio?

A.  Make sure your google libraries are all at the same version:

dependencies { compile 'com.google.firebase:firebase-core:9.4.0' compile 'com.google.firebase:firebase-ads:9.0.1' // Oh noes, different version }
dependencies { compile 'com.google.firebase:firebase-core:9.4.0' compile 'com.google.firebase:firebase-ads:9.4.0' // This works }

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.