Conflict resolution at the time of quoting Android-support-v4.jar

Source: Internet
Author: User

Conflict resolution at the time of quoting Android-support-v4.jar

When developing applications, it's hard to avoid using many third-party open source projects that use the Android-support-v4.jar package, and my project uses it.

Plus, there are a variety of complex citation relationships between these open source projects.

In this way, references and references may appear android-support-v4.jar conflict issues, similar to:

Jar mismatch! Fix your dependencies

Found 2 versions of Android-support-v4.jar in the dependency list,but isn't all the versions is identical

My workaround is to:

    1. Create a new empty project that only puts a version of the correct Android-support-v4.jar package under libs/.

    2. Delete your project, as well as all the android-support-v4.jar you reference in the project.

    3. For each project that requires Android-support-v4.jar, increase the reliance on the empty project created in step 1.
      Properties > android> Library box > Add

In this way, the v4.jar used in the whole project can be guaranteed to be single-case.

Conflict resolution at the time of quoting Android-support-v4.jar

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.