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$ The builder later discovered that this was not related to the framework through careful research because

Your ADT upgrade to 22 out of the question, ADT22 more reasonable than ADT21. After the version number of the adt17. To import a third-party jar package, to create a Libs folder, you can not use the Lib naming, ADT will voluntarily rely on the jar, do not manually add

Add it.

References 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.

Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity /center ">


Analyze the difference between ADT22 and ADT21:

ADT21 Chart:

Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity /center ">

ADT22 Chart:



Steps to resolve:

1. First of all, deal with the above questions

2.adt22 need to tick Android Private libraries and Android Dependencies to let developers decide which packages to export to the APK. For example, the program is for a high-version Android system. Can choose not to need

Export some support packages for the lower version number (for example: V4, V7, etc.)

Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity /center ">

3.libs inside the jar package also should be noted, because ADT17 after the self-initiated import. So do not put the system has a package to this folder, can see the console (console) whether the same package, fake set up to delete

4. Compile (Project--clean)

Description: There may be some steps you do not need, I may consider more here

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.