I have two android modules that one of them has a dependency to other one, and both have same package name.
this error occurs building the project:
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: ir/magnet/sdk/BuildConfig.class
To avoid the duplicate Is there a way to remove the first module's BuildConfig.class after build?
Related
There's a library that I need to integrate in my project:
adobeMobileLibrary-4.14.0.jar
But when I try to run it gives me this error:
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/adobe/mobile/AbstractDatabaseBacking$CorruptedDatabaseException.class
So I found that a compiled .aar library is internally compiling the same adobeMobileLibrary but in another version.
What would be the best way to solve this type of problem?
I am implementing facebook native ads in unity that needs gradle build from unity. After importing to Android Studio and gradle sync it runs well but during signed APK it produces the error which is.
Error:Execution failed for task ':transformClassesWithJarMergingForRelease'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/unity3d/ads/android/BuildConfig.class
This error means you have duplicate class definition for:
com.unity3d.ads.android.BuildConfig
Try look into your jar/aar to see if the class is present at multiple places.
I like to use grep (linux/osx) or 7-Zip to quickly explores my jar/aar files
I got error when I use twillio and sora library.
Error:Execution failed for task ':quickstart:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/webrtc/Camera1Session$2.class
I've researched and I know that 2 library extend from org.webrtc, so When android system build then I will duplicate org.web.
I spent 3 weeks for this issue, but i cannot resolve.
Any solution would be appreciate
Thank!
I have been tired after trying to solve this problem for last 2 days. My project was OK before implementing Appodeal. But after implementing Appodeal this error is occurred. I have seen several solution for the same type problem. But I didn't get solution for duplicate entry of DefaultItemAnimator$2.class
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v7/widget/DefaultItemAnimator$2.class
Solve the problem:
After deleting support-v7.jar from libs folder it's working. actually support-v7 was duplicate.
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/arellomobile/android/push/utils/rich/WebImageView.class
Here is my app.gradle:
Where is the problem and How to remove that?
Your app.gradle did not attach. Make sure you are referencing the Pushwoosh library only once. It looks like it has been referenced twice somehow.