When Android ADT is upgraded to version 22, it is no longer possible to add jars to the Lib library.

Source: Internet
Author: User

There is an Android app big project, referencing a lot of class libraries, has been running well, today I upgraded the Eclipse ADT plugin to the latest version (V22), while also upgrading SDL. In the entire
The upgrade process is good, no problem, when I reached the APK on the phone run, error noclassdeffounderror

Java.lang.NoClassDefFoundError:org.acra.ACRA
....
The ARCA library is included in the Lib library, I can see in the Android Private Libraries, and compile errors. The other person does not upgrade the ADT computer and works well.

I've tried a whole bunch of things, including but not limited to:

1. Reinstall the Android SDK
2. Download a new ADT Package
3. Delete all my code and recompile
4. Application Projects for replication libraries
5. Comment out the code used in this library


Call for help ....

An ADT for Android Eclipse

Processing methods


When upgrading, the new "Android Private Libraries" Order and Export is not a required item. , Android-support-v4.jar is already in the ' Android Private Libraries '

To resolve this issue, go to ' Order and Export ' and tick ' Android Private Libraries '. Then Refresh/clean/rebuild.

When you do the ' Fix ' Library project, you may need to just close and reopen the project


Original address: http://www.itmmd.com/201410/76.html
This article by Meng Meng's IT person to organize the release, reprint must indicate the source.

When Android ADT is upgraded to version 22, it is no longer possible to add jars to the Lib library.

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.