Duplicate files copied in APK META-INF (Android Studio)
Duplicate file woes in Android Studio v0.4.0?
gradle 0.7.1 provides a DSL feature, "packagingOptions/exclude". You can use it to remove the problem files.
Add the below lines to build.gradle:
https://code.google.com/p/android/issues/detail?id=61573#c26android {
packagingOptions {
exclude 'META-INF/license.txt'
exclude 'META-INF/notice.txt'
}
}
Worked for me. Mileage may vary.
Comments