Go Java.lang.NoClassDefFoundError error resolution for Android engineering

Source: Internet
Author: User

In Eclipse, import Android project, project no error, run, the Java.lang.NoClassDefFoundError class did not find errors. As you can see from the problem, the cause of the import package error. Hence Baidu plus Google.

  The problem is: Reasons for the high version of ADT

The introduction of the third-party package in the referenced libraries, ADT upgraded to 17 after the emergence of Android Dependencies, so if the program introduced in the third-party package is not in the Android Dependencies, You will be quoted the wrong at the beginning of the article.
  Workaround:

Remove the package from the previous referenced libraries, rename the Lib to Libs, and then copy the package back into the Libs, and the general Android dependencies will automatically appear and the problem will be resolved. However, some projects do not appear automatically, it is necessary to make a step of modification. (does not automatically generate the solution for Android dependencies)

  

Steps to resolve:

1) Rename Lib to Libs:

  

2) Remove the original imported package

  

3) See if third-party packages are automatically generated

  

Article reprinted from: http://blog.csdn.net/encienqi/article/details/7834900

Go Java.lang.NoClassDefFoundError error resolution for Android engineering

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.