java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.foo.app/com.foo.app.LoginActivity}: java.lang.ClassNotFoundException: Didn't find class "com.foo.app.LoginActivity" on path: DexPathList[[zip file "/data/app/com.foo.app-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.foo.app-1, /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

,
via github.io by Unknown author

You need to setup a GlideModule before use Glide.

Solutions on the web

via Stack Overflow by yozawiratama
, 1 year ago
Unable to instantiate activity ComponentInfo{com.foo.app/com.foo.app.LoginActivity}: java.lang.ClassNotFoundException: Didn't find class "com.foo.app.LoginActivity" on path: DexPathList[[zip file "/data/app/com.foo.app-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.foo.app-1, /vendor/lib, /system/lib]]
via GitHub by keith5
, 2 years ago
path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.quickblox.sample.location-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.quickblox.sample.location-1, /vendor/lib, /system/lib]]
via Stack Overflow by Phito
, 1 year ago
Unable to instantiate activity ComponentInfo{com.gvg.simid/com.gvg.simid.Login}: java.lang.ClassNotFoundException: Didn't find class "com.gvg.simid.Login" on path: DexPathList[[zip file "/data/app/com.gvg.simid-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.gvg.simid-1, /vendor/lib, /system/lib]]
via Stack Overflow by jack larcombe
, 1 year ago
Unable to instantiate activity ComponentInfo{com.FinalFrontier.MoonLanding/com.FinalFrontier.MoonLanding.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.FinalFrontier.MoonLanding.MainActivity" on path: DexPathList[[zip file
via dolinked.com by Unknown author, 2 years ago
Unable to instantiate activity ComponentInfo{com.LEEADS/com.LEEADS.timestableseasy.Splashscreen}: java.lang.ClassNotFoundException: Didn't find class "com.LEEADS.timestableseasy.Splashscreen" on path: DexPathList[[zip file "/data/app/com.LEEADS-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.LEEADS-1, /vendor/lib, /system/lib]]
via Stack Overflow by KVISH
, 2 years ago
Unable to instantiate activity ComponentInfo{com.testapp/com.testapp.views.loginregistration.LoginView}: java.lang.ClassNotFoundException: Didn't find class "com.testapp.views.loginregistration.LoginView" on path: DexPathList[[zip file "/system
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.foo.app/com.foo.app.LoginActivity}: java.lang.ClassNotFoundException: Didn't find class "com.foo.app.LoginActivity" on path: DexPathList[[zip file "/data/app/com.foo.app-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.foo.app-1, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2131)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2264)
at android.app.ActivityThread.access$600(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1259)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5152)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:744)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
25 times, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 2 years ago
Once, 1 year ago
3 times, 1 year ago

Write tip

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