caused By:java.lang.classnotfoundexception[android's ultimate resolution ERROR]

Source: Internet
Author: User

from:http://blog.csdn.net/changemyself/article/details/7861525

08-13 18:29:22.924:e/androidruntime (1875): caused By:java.lang.ClassNotFoundException:XXXXX in    loader DALVIK.SYSTEM.PATHCLASSLOADER[/DATA/APP/XXXX.APK]

I think we often because of negligence classnotfoundexception abnormal, this anomaly in the Android development is nothing but to tell you that the class did not find, then what causes not to find it?

In fact, generally divided into 2 kinds of situations:

1, start the activity, in androidmanifest.xml maybe you forget to add an activity, or the activity's package name or name is wrong, this error is very high probability

2, your use of the class, is an external jar package, when compiled in the project, the release of the APK does not include the jar file, so the APK can not find the jar file when executing, will be error.

So be sure to check the jar package used in order and Export. Remember!

caused By:java.lang.classnotfoundexception[android's ultimate resolution ERROR]

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.