Java.Util.Zip.Zipexception: Duplicate Entry

java.util.zip.ZipException: duplicate entry during packageAllDebugClassesForMultiDex

You need to check that you have inserted v4 library and compile library? You must not repeat library in your app or your dependence program.

delete the repeat library so that just one V4 remains.

in your app dir build.gradle file
add this command:

android{

configurations {
all*.exclude group: 'com.android.support', module: 'support-v4'
all*.exclude group: 'com.android.support', module: 'support-annotations'
}

}

it works for me! You can try it!

java.util.zip.ZipException: duplicate entry: com/google/android/gms/location/places/zzl.class

Try adding this line in your app/build gradle dependencies:

compile 'com.google.android.gms:play-services-places:11.8.0'

java.util.zip.ZipException: duplicate entry: android/arch/lifecycle/LiveData$1.class

This probably happens because of version mismatch of dependencies. A similar question here,
I have checked the dependency tree it had:

android.arch.lifecycle:extensions:1.0.0-beta1

and

android.arch.lifecycle:livedata-core:1.1.0

see the mismatch 1.0.0 & 1.1.0

In your case try updating:

implementation 'com.firebaseui:firebase-ui-storage:3.2.1'
implementation 'com.firebaseui:firebase-ui-database:3.0.0'

to:

implementation 'com.firebaseui:firebase-ui-storage:3.2.2'
implementation 'com.firebaseui:firebase-ui-database:3.2.2'

which should hopefully fix the issue.

what is the "LiveData.class" actually I dont understand

Please read this.



Related Topics



Leave a reply



Submit