Android upgrade ADT to 22 third party jar package caused by ClassNotFoundException and Noclassdeffounderror exception resolution

Source: Internet
Author: User

Encountered an error while using the Android-universal-image-loader jar package for the asynchronous loading framework:

java.lang.NoClassDefFoundError:com.nostra13.universalimageloader.core.imageloaderconfiguration$ Builder later discovered through careful study that this is not related to the framework, this is due to

Your ADT upgrade to 22 out of the question, ADT22 more reasonable than ADT21. After the adt17 version, import the third-party jar package, to establish a libs directory, cannot use the Lib name, ADT will automatically rely on the jar, do not manually add

Add it.

Reference Link: http://blog.csdn.net/huzgd/article/details/7604069

Note: If you have add yourself, you can configure the build path to delete the package you imported



Analyze the difference between ADT22 and ADT21:

ADT21 Chart:


ADT22 Chart:



Steps to resolve:

1. First of all, deal with the above questions

2.adt22 needs to tick Android Private libraries and Android Dependencies, so developers can decide for themselves which packages to export to the APK. For example, the program is for a high-version Android system, you can choose not to

Export some support packages for the lower version (e.g. V4, v7, etc.)


3.libs inside the jar package also should note, because after ADT17 is automatic import, so do not put the system some packages to this directory, you can see the console (console) is said to have the same package, if any, delete

4. Compile (Project--clean)

Description: There may be some steps you do not need, and I may think about it a bit more here

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Android upgrade ADT to 22 third party jar package caused by ClassNotFoundException and Noclassdeffounderror exception resolution

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.