java.lang.ClassNotFoundException: Didn't find class "com.example.mobile.activities.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.mobile-2/base.apk"],nativeLibraryDirectories=[/data/app/com.example.mobile-2/lib/x86, /vendor/lib, /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 AsafK
, 1 year ago
Didn't find class "com.example.mobile.activities.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.mobile-2/base.apk"],nativeLibraryDirectories=[/data/app/com.example.mobile-2/lib/x86, /vendor/lib, /system/lib]]
via Stack Overflow by James Robert Singleton
, 2 years ago
Didn't find class "com.example.james.texttospeech.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.james.texttospeech-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
via Stack Overflow by Raju Gujarati
, 2 years ago
Didn't find class "com.example.testgpsmarker.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.testgpsmarker-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.testgpsmarker-2, /vendor/lib, /system/lib]]
via Stack Overflow by skunkwerk
, 2 years ago
Didn't find class "com.unifiapp.view.SplashScreen" on path: DexPathList[[zip file "/data/app/com.unifiapp-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.unifiapp-2, /vendor/lib, /system/lib]]
via Stack Overflow by Unknown author, 2 years ago
Didn't find class "com.jeremy.myfirstproject.MyActivity" on path: DexPathList[[zip file "/data/app/com.jeremy.myfirstproject-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
via Stack Overflow by Jolly
, 2 years ago
Didn't find class "com.scandiumstudio.numrun.android.AndroidLauncher" on path: DexPathList[[zip file "/data/app/com.scandiumstudio.numrun.android-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.scandiumstudio.numrun.android-2, /system/lib]]
java.lang.ClassNotFoundException: Didn't find class "com.example.mobile.activities.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.mobile-2/base.apk"],nativeLibraryDirectories=[/data/app/com.example.mobile-2/lib/x86, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at android.app.Instrumentation.newActivity(Instrumentation.java:1067)

Users with the same issue

39 times, 1 month ago
Once, 2 months ago
17699 times, 3 months ago
9 times, 3 months ago
2 times, 4 months ago

Write tip

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