Why the jar file under the Libs folder is not automatically placed in the Android Private libraries directory

Source: Internet
Author: User

In short: The problem is that the jar package repeats the conflict!


At the beginning of this question I appeared a "self-righteous" answer, in the Android Private libraries directory will be packaged into the project executable, and not automatically compiled because the libs below the jar file is too large to cause, But obviously, when it's running, it's a direct error--class not found!

So obviously that's not the problem!

In fact, there is a android-support-v4.jar under the Libs directory. And if you have a project that introduces other libraries




And if there is android-support-v4.jar in this project, then the problem arises. The V4jar package under the Libs of the current project is duplicated with the V4jar package under the Libs of the included library project. At this time, the current project will not put any of the following Libs the jar into the auto-generated Android Private libraries directory, this directory will not be generated.


Solution: The current project in the Android-support-v4.jar to delete it! Then Clean,build. It's OK.

Why the jar file under the Libs folder is not automatically placed in the Android Private libraries directory

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.