Android duplicate file copy apk meta-inf license Error Record

Source: Internet
Author: User

* 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.