Caused by: Java. Lang. classnotfoundexception: XXXXX In loader Dalvik. system. pathclassloader [/data/APP/xxxx.apk]
I think we often encounter classnotfoundexception exceptions due to negligence. In Android development, this exception is nothing more than telling you that the class is not found. Why did it fail to be found?
In fact, there are two situations:
1. When you start an activity, you may forget to add an activity in androidmanifest. XML, or the package name or name of the activity is wrong. This error is highly likely.
2. Your class is an external jar package. When it is compiled and used in the project, it is published as an APK and does not contain the JAR file, therefore, when the APK is executed, the JAR file cannot be found, and an error is returned.
Therefore, you must check the jar package in "order and export. Remember!
If none of the above two items exist, you can check the following
Change
After changing the location, it will be OK.