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:
android {
    packagingOptions {
        exclude 'META-INF/license.txt'
        exclude 'META-INF/notice.txt'
    }
}

https://code.google.com/p/android/issues/detail?id=61573#c26
Worked for me. Mileage may vary.

Comments

Anonymous said…
That's not work for me because That option need to add <> before that text. All create a big error in my project

Popular posts from this blog

Python SUDS with Windows Authentication (SOAP)

Text Sherlock the OpenGrok alternative (Source Code Search Engine)

How to remove, update, or replace the WKWebView inputAccessoryView