Android Studio 错误 Duplicate files copied in APK META-INF/LICENSE.txt
Posted 再见理想
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Android Studio 错误 Duplicate files copied in APK META-INF/LICENSE.txt相关的知识,希望对你有一定的参考价值。
1 .Duplicate files copied in APK META-INF/LICENSE.txt
android {
packagingOptions {
exclude ‘META-INF/LICENSE.txt‘
}
}
My logcat: log Execution failed for task ‘:Prog:packageDebug‘.
解决方法:Duplicate files copied in APK META-INF/LICENSE.txt File 1: /home/scijoker/AndroidStudioProjects/ProgProject/Prog/libs/httpclient-4.1.1.jar File 2: /home/scijoker/AndroidStudioProjects/ProgProject/Prog/libs/httpclient-4.1.1.jar
- android {
- packagingOptions {
- exclude ‘META-INF/DEPENDENCIES.txt‘
- exclude ‘META-INF/LICENSE.txt‘
- exclude ‘META-INF/NOTICE.txt‘
- exclude ‘META-INF/NOTICE‘
- exclude ‘META-INF/LICENSE‘
- exclude ‘META-INF/DEPENDENCIES‘
- exclude ‘META-INF/notice.txt‘
- exclude ‘META-INF/license.txt‘
- exclude ‘META-INF/dependencies.txt‘
- exclude ‘META-INF/LGPL2.1‘
- }
- }
以上是关于Android Studio 错误 Duplicate files copied in APK META-INF/LICENSE.txt的主要内容,如果未能解决你的问题,请参考以下文章