Android upgrade ADT22 version, use third-party class library project error: java.lang.NoClassDefFoundError:xx.xx.xx

Source: Internet
Author: User

The sharing SDK of the UF alliance encountered this problem: Java.lang.NoClassDefFoundError:com.umeng.socialize.controller.UMServiceFactory.

Cause: The Android ADT version is generated after the upgrade.

Workaround: ①.build The location of the third-party jar package in Path-->order and export;

②. If the first method is not good, please try and right-click the project name-->build path-->configure Build path.

The Class Library Settings dialog box pops up and the tab "Order and Export" is clicked.


The two options for Android Private libraries and Android dependencies are checked, (it seems that the third-party class library order also needs to be adjusted, before a project is compiled to run the same error, the third-party class library position is raised, The project's SRC and Gen two package position down, the same error problem on the previous project is resolved, the project clean, recompile, the problem is solved!

Android upgrade ADT22 version, use third-party class library project error: java.lang.NoClassDefFoundError:xx.xx.xx

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.