I'm updating my app to use Crosswalk 16. The build fails with:

:packageAllFastmailArm7DebugClassesForMultiDex FAILED

FAILURE: Build failed with an exception.

* What went wrong: Execution failed for task
  ':packageAllFastmailArm7DebugClassesForMultiDex'.
> java.util.zip.ZipException: duplicate entry:
> org/apache/commons/codec/EncoderException.class

My dependency section in build.gradle is:

dependencies {    repositories {        mavenCentral()         maven {
url '
https://download.01.org/crosswalk/releases/crosswalk/android/maven2'
}        maven {            url '
http://dl.bintray.com/danielnilsson9/maven'        }    }    provided
files('libs/amazon-device-messaging.jar')    provided files('libs/pushy-
1.0.7.jar')    compile 'com.android.support:multidex:1.0.0'    compile
'com.android.support:support-v4:23.1.0'    compile 
'com.android.support:appcompat-
v7:23.1.0'    compile 'com.google.android.gms:play-services-gcm:8.1.0'
compile 'commons-codec:commons-codec:1.10'    compile 'commons-io:commons-
io:2.4'    compile 'org.xwalk:xwalk_core_library_beta:16.45.421.2'
compile 'de.cketti.library.changelog:ckchangelog:1.2.2'    compile 
'com.github.danielnilsson9:color-picker-
view:1.4.0' }

As far as I'm able to tell (and I'm fairly new to all this), Crosswalk
bundles elements of commons-codec, which clash with the explicit
dependency I have myself. It seems it's not the only one; I removed the
parts of my app that need commons-codec and removed the dependency, only
for it to fail the same way, this time with elements from support-v4.

Normal gradle exclusions don't appear to be having any effect. I'm
unable to find any other information about this type of failure that
might help.

Does anyone have any suggestions?

Complete build.gradle is attached.

Thanks, Rob N.

Attachment: build.gradle
Description: Binary data

_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to