Duplicated files copied in APK when including both Joda Time and Common IO libraries in Android project Duplicated files copied in APK when including both Joda Time and Common IO libraries in Android project android android

Duplicated files copied in APK when including both Joda Time and Common IO libraries in Android project


You need to exclude LICENSE.txt and NOTICE.txt as such:

android {    //code    packagingOptions {        exclude 'META-INF/NOTICE.txt'        exclude 'META-INF/LICENSE.txt'    }}dependencies {    compile 'joda-time:joda-time:2.3'    compile 'commons-io:commons-io:2.4'}

This worked for me with the same error. Notice the versions as well.