java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.main/com.example.main.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.main.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.main-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.main-1, /system/lib]]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

A required library class, SdkReceiver, is not loaded. Make sure your SDK classpath is configured correctly in the environment variable or use the -cp or -classpath option if running on the command line, to point to your SDK jar files.

,
via github.io by Unknown author

You need to setup a GlideModule before use Glide.

Solutions on the web

via Stack Overflow by Kunal badade
, 1 year ago
Unable to instantiate activity ComponentInfo{com.example.main/com.example.main.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.main.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.main-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.main-1, /system/lib]]
via Stack Overflow by shiva krishna
, 2 years ago
Unable to instantiate activity ComponentInfo{com.example.project/com.example.project.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.project.MainActivity" on path: DexPathList[[zip file "/system/framework
via Stack Overflow by Unoffishel 1
, 10 months ago
Unable to instantiate activity ComponentInfo{bike.game.moto/bike.game.moto.PTPlayer}: java.lang.ClassNotFoundException: Didn't find class "bike.game.moto.PTPlayer" on path: DexPathList[[zip file "/data/app/bike.game.moto-1.apk"],nativeLibraryDirectories=[/data/app-lib/bike.game.moto-1, /system/lib, /system/lib/arm, /data/downloads]]
via Stack Overflow by user3469274
, 2 years ago
Unable to instantiate activity ComponentInfo{bi.project.rockridgesecondary/bi.project.sentinelsecondary.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "bi.project.sentinelsecondary.MainActivity" on path: DexPathList[[zip file
via GitHub by Goldie13
, 1 year ago
Unable to instantiate activity ComponentInfo{com.Android.Mercedes/com.Android.MyPro.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.Android.MyPro.MainActivity" on path: DexPathList[[zip file "/data/app/com.Android.Mercedes-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.Android.MyPro-1, /vendor/lib, /system/lib, /system/lib/arm]]
via GitHub by mejonzhan
, 2 years ago
Unable to instantiate activity ComponentInfo{com.example.TestPlugin/com.example.TestPlugin.MyActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.TestPlugin.MyActivity" on path: DexPathList[[zip file "/data/app/com.example.TestPlugin-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.TestPlugin-1, /vendor/lib, /system/lib]]
java.lang.ClassNotFoundException: Didn't find class "com.example.main.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.main-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.main-1, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
at android.app.Instrumentation.newActivity(Instrumentation.java:1061)

Users with the same issue

36 times, 1 minute ago
Once, 1 month ago
17699 times, 2 months ago
9 times, 2 months ago
2 times, 3 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.