* What went wrong:
Execution failed for task ': App:transformresourceswithmergejavaresfordebug '.
> com.android.build.api.transform.TransformException:com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK Meta-inf/license
File1:c:\androidstudio\umer_doctor\app\libs\httpmime-4.3.5.jar
File2:c:\androidstudio\umer_doctor\app\libs\httpcore-4.3.2.jar
* Try:
Run with--STACKTRACE option to get the stack trace. Run with--info or--debug option to get more log output.
This is the exception information thrown at the time, very strange, the following is the solution (if there is more understanding of the people welcome detailed explanation, learn from each other)
packagingoptions { ' meta-inf/dependencies.txt ' meta-inf/license.txt ' Meta-inf/notice.txt ' Meta-inf/notice ' meta-inf/license ' meta-inf/ DEPENDENCIES ' meta-inf/notice.txt ' meta-inf/license.txt ' Meta-inf/dependencies.txt ' meta-inf/lgpl2.1 ' }
View Code
This is the complete solution, although I do not know what this is the reason, is estimated to be a compiler problem, maybe later as the upgrade will not happen, I use the 1.5 version of the
Android Duplicate file copy apk meta-inf license error logging