Error Message:
Error:duplicate files during packaging of APK C:\Documents and Settings\xxxxxxxx\AndroidStudioProjects\project_name\build\outputs\apk\project_name-debug-unaligned.apkError:Execution failed for task ':packageDebug'.
> Duplicate files copied in APK META-INF/LICENSE.txt
File 1: C:\Documents and Settings\xenialaw\AndroidStudioProjects\project_name\libs\httpclient-4.0.1.jar
File 2: C:\Documents and Settings\xenialaw\AndroidStudioProjects\project_name\libs\twitter4j-core-2.1.11.jar
Add the code at build.gradle, within android tag to ignore those files:
Example code :packagingOptions {exclude 'META-INF/LICENSE.txt'
}
Reference:
No comments :
Post a Comment