A solution for Java. Lang. noclassdeffounderror

Source: Internet
Author: User

During the development process, the following problem occurs: Java. lang. noclassdeffounderror: Android. support. v4.util. sparsearraycompat. This problem is very strange. The jar package has been installed and the compilation has passed. However, the class cannot be found during running. Noclassdeffounderror is generally the corresponding class and is not included in the corresponding APK. Isn't the corresponding android-support-v4.jar not packaged into the APK? With a try, open the project Property setting interface:

Check the check box before [Android private libraries], clean the project, and compile and run it.

This document is used as a souvenir.

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.