标签:
在使用Android studio引入第三方jar包,打包时出错
Error:duplicate files during packaging of APK F:\Travel\app\build\outputs\apk\app-debug-unaligned.apk
Path in archive: META-INF/NOTICE.txt
Origin 1: F:\Travel\app\libs\commons-codec-1.6.jar
Origin 2: F:\Travel\app\libs\commons-httpclient-3.1.jar
You can ignore those files in your build.gradle:
android {
packagingOptions {
exclude ‘META-INF/NOTICE.txt’
}
}
Error:Execution failed for task ‘:app:packageDebug’.
Duplicate files copied in APK META-INF/NOTICE.txt
File 1: F:\Travel\app\libs\commons-codec-1.6.jar
File 2: F:\Travel\app\libs\commons-codec-1.6.jar
packagingOptions {
exclude ‘META-INF/LICENSE.txt‘
exclude ‘META-INF/NOTICE.txt‘
}
duplicate files during packaging of APK
标签:
原文地址:http://blog.csdn.net/tule_ant/article/details/45673237