pamu pamu - 2 months ago 31
Scala Question

Duplicate Zip entry Android after adding Sinch to the libs folder

/libs/sinch-android-verification-1.1.2.jar(;;;;;;!META-INF/**,!rootdoc.txt)] (Duplicate zip entry [sinch-android-verification-1.1.2.jar:com/sinch/verification/Config.class])

build.sbt


unmanagedJars in Compile += file("libs/sinch-android-verification-1.1.2.jar")


Caused by: java.io.IOException: Duplicate zip entry [sinch-android-verification-1.1.2.jar:com/sinch/verification/Config.class]

[error] (android:proguard) java.io.IOException: Can't write [/Users/******/target/android/intermediates/proguard/classes.proguard.jar] (Can't read [/Users/******/libs/sinch-android-verification-1.1.2.jar(;;;;;;!META-INF/**,!rootdoc.txt)] (Duplicate zip entry [sinch-android-verification-1.1.2.jar:com/sinch/verification/Config.class]))

pfn pfn
Answer

The line specifying:

unmanagedJars in Compile

is superfluous and the cause of this error.

Comments