After android adt is upgraded to version 22, you cannot add the jar to the lib library. androidadt

Source: Internet
Author: User

After android adt is upgraded to version 22, you cannot add the jar to the lib library. androidadt

At present, there is a large android app project that has referenced many class libraries and has been running well. Today I upgraded the Eclipse ADT plug-in to the latest version (v22) and upgraded the sdl. In the entire
The upgrade process was good and there was no problem. When I reached the apk running on my mobile phone, the error "NoClassDefFoundError" was reported.

Java. lang. NoClassDefFoundError: org. acra. ACRA
....
This ARCA library contains a pound of information in the lib library. I can see it in Android Private Libraries and see the compilation error. The adt has not been upgraded and runs well.

I have tried a lot of things, including but not limited:

1. reinstall the Android SDK
2. Download a new ADT package
3. Delete all my codes and recompile them.
4. Application projects related to the replication Library
5. comment out the code in this library.


Asking for help ....

Android Eclipse ADT

Solution


During the upgrade, the Order and Export of the new "Android Private Libraries" is not a required item ., Android-support-v4.jar is already in 'android Private libraries'

To solve this problem, go to 'Order and export' and check 'android Private libraries '. Then refresh/clean/rebuild.

When you do this to 'fix' the library project, you may need to just close and re-open the project


Address: http://www.itmmd.com/201410/76.html
This article is organized and published by Meng IT personnel. The reprinted article must indicate the source.

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.