Java.lang.ClassNotFoundException:Didn ' t find Class "*****activity" on Path:/data/app/*******.apk

Source: Internet
Author: User
Tags file copy

A lot of people have appeared java.lang.RuntimeException:Unable to instantiate activity componentinfo{*****activity}: Java.lang.ClassNotFoundException:Didn ' t find Class "*****activity" on path:/data/app/*******.apk error, in Android development, I also encountered this problem, tangled up for two days, finally resolved, combined with my own online to find, is now available to everyone.


1. Manifest file registered activity name, there is no wrong, the package name is not mistaken, some netizens, may only write a class name, preceded by the point number instead, but this class is not in the default package, so reported this error, so long as the full name of the class, you can.


2. Some android, need some Third-party package, directly introduced it, in the past can be, but in the latest ADT, you must create a new Libs folder in the program, the third party jar file copy to the Libs folder, a lot of people because this is the error, In particular, the previous project, the default does not have this Libs folder, but the new version of the ADT, the default built Libs this folder.


3. It is also important that, in order and export under the Java Build Path panel, you must hook up the jar file you introduced, otherwise, as no reference, remember.


Generally is the former reason, if you can not understand, or what other reasons, please leave a message with me, to share and progress together.

Related Article

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.