Android Duplicate files copied in APK

Source: Internet
Author: User

Debugging Android Apps Today is a problem:

Duplicate files copied in APK meta-inf/dependencies file 1:httpmime-4.3.2.jar file 2:httpmime-4.3.2.jar

It seems that two of the package inside the file is repeated or how, Google after a few is said to be the Android studio itself bug

Workaround:

Open the Build.gradle file below the project and add the following code to the Android code block

    1. Android {
    2. packagingoptions {
    3. Exclude ' meta-inf/dependencies '
    4. Exclude ' Meta-inf/notice '
    5. Exclude ' Meta-inf/license '
    6. Exclude ' meta-inf/license.txt '
    7. Exclude ' meta-inf/notice.txt '
    8. }
    9. }

Get rid of all these files, OK?

But do not know whether this will have any hidden trouble, there are other better solutions

Refer to this article: Http://stackoverflow.com/questions/20853094/gradle-and-android-studio-duplicate-file-copied-from-same-jar

Android Duplicate files copied in APK

Related Article

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.