android - Gradle error duplicate entry: rx/AsyncEmitter$BackpressureMode.class -
in android studio, when try build signed apk following error:
error:execution failed task ':transformclasseswithjarmergingforrelease com.android.build.api.transform.transformexception: java.util.zip.zipexception: duplicate entry: rx/asyncemitter$backpressuremode.class
in app gradle have following
compile'com.instabug.library:instabug:4.2.6' compile 'com.ironsource.adapters:vungleadapter:3.2.0@jar' the instabug library imports external file rxjava-1.1.9 contains meta-inf , rx file. vungleadapter imports vungleadapter-3.2.0 has same 2 files.
if change gradle bellow segment, apk builds when run instabug in app app crashed.
compile('com.instabug.library:instabug:4.2.6') { exclude group: 'io.reactivex' } compile 'com.ironsource.adapters:vungleadapter:3.2.0@jar' if switch exclude other 1 shown bellow, apk doesnt build because same duplicate file error above.
compile'com.instabug.library:instabug:4.2.6' compile ('com.ironsource.adapters:vungleadapter:3.2.0@jar'){ exclude group: 'io.reactivex' } so appear need keep io.reactivex instabug library since essential work therefore there way exclude vungle jar , how exclude jar?
any appreciated, thanks.
Comments
Post a Comment