Android duplicate webrtc class when I use 2 library dependencies on webrtc - android

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!

Related

org.gradle.api.UncheckedIOException: java.util.zip.ZipException: duplicate entry: META-INF/MANIFEST.MF

My code is work properly in android 9 only, before updated Gradle file is work properly after updating Gradle is showing error
less than version
org.gradle.api.UncheckedIOException: java.util.zip.ZipException: duplicate entry: META-INF/MANIFEST.MF
Some of your Libraries have similar dependencies
specifically jetbrains library check this Article

A library is internally compiling another version of a library that I need externally?

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?

Error:Execution failed for task ':transformClassesWithJarMergingForRelease'

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

java.util.zip.ZipException: duplicate entry: exception for DefaultItemAnimator$2.class

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.

Pushwoosh Duplicate entry error in android studio

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.

Categories

Resources