您的位置:首页 > 移动开发 > Android开发

Android Studio.Duplicate files copied in APK META-INF/notice.txt

2015-09-24 15:05 435 查看
[转自]http://stackoverflow.com/questions/22467127/error-duplicate-files-during-packaging-of-apk#【备忘】

Android Studio. I'm getting this kind of error during application run.

Error:Execution
 failed for task ':app:packageDebug'. Duplicate files copied in APK META-INF/notice.txt


build.gradle
[code]android {
...

    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/ASL2.0'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/license.txt'
    }
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: