Unable to locate class in the dependent libraries or classpath

java.lang.ClassNotFoundException
Javadoc
Thrown when an application tries to load in a class through its string name using:
  • The forName method in class Class.
  • The findSystemClass method in class ClassLoader .
  • The loadClass method in class ClassLoader.

but no definition for the class with the specified name could be found.

As of release 1.4, this exception has been retrofitted to conform to the general purpose exception-chaining mechanism. The "optional exception that was raised while loading the class" that may be provided at construction time and accessed via the {@link #getException()} method is now known as the cause, and may be accessed via the {@link Throwable#getCause()} method, as well as the aforementioned "legacy method." @author unascribed @see java.lang.Class#forName(java.lang.String) @see java.lang.ClassLoader#findSystemClass(java.lang.String) @see java.lang.ClassLoader#loadClass(java.lang.String, boolean) @since JDK1.0

at dalvik.system.BaseDexClassLoader.findClass
(source)
at java.lang.ClassLoader.loadClass
(source)
at java.lang.ClassLoader.loadClass
(source)

Typical Exception Messages

  1. com.google.android.gms.maps.MapFragment
  2. com.google.android.gms.maps.SupportMapFragment
  3. Didn't find class "com.qualcomm.qti.tetherstatsextension.TetherStatsReporting" on path: DexPathList[[],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
  4. com.google.ads.AdView
  5. android.support.v4.widget.DrawerLayout
  6. com.google.zxing.client.android.CaptureActivity
  7. Didn't find class "com.facebook.login.LoginClient$Request" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
  8. Didn't find class "android.support.v7.recyclerview.R$styleable" on path: DexPathList[[zip file "/data/app/com.zh.myrecyclerview-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
  9. com.android.tools.fd.runtime.BootstrapApplication
  10. Didn't find class "android.support.multidex.MultiDexApplication" on path: DexPathList[[zip file "/data/app/AnXinMe.RemoteTv.Droid-1.apk"],nativeLibraryDirectories=[/data/app-lib/AnXinMe.RemoteTv.Droid-1, /vendor/lib, /system/lib]]

Origin

ClassLoader.loadClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
1 frames hidden
java.lang.ClassLoader.loadClass
2121Web pages

Similar

Specific cases

Solution

Nwabunnia, 9 months ago

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.

External results for this pattern (1936)

  1. jonpryorvia GitHub1 day ago
    Didn't find class "mono.android.MultiDexLoader" on path: DexPathList[[zip file "/data/app/Xamarin.Android.Locale_Tests-1/base.apk", zip file "/data/app/Xamarin.Android.Locale_Tests-1/base.apk"],nativeLibraryDirectories=[/data/app/Xamarin.Android.Locale_Tests-1/lib/x86, /data/app/Xamarin.Android.Locale_Tests-1/lib/x86, /vendor/lib, /system/lib]]
    Show stack trace
  2. GeetsKrishvia GitHub5 days ago
    Didn't find class "org.nativescript.plugins.firebase.MyFirebaseMessagingService" on path: DexPathList[[zip file "/data/app/org.nativescript.FirebaseApp1-1/base.apk"],nativeLibraryDirectories=[/data/app/org.nativescript.FirebaseApp1-1/lib/x86, /vendor/lib, /system/lib]]
    Show stack trace
  3. GeetsKrishvia GitHub5 days ago
    Didn't find class "org.nativescript.plugins.firebase.MyFirebaseMessagingService" on path: DexPathList[[zip file "/data/app/org.nativescript.FirebaseApp1-1/base.apk"],nativeLibraryDirectories=[/data/app/org.nativescript.FirebaseApp1-1/lib/x86, /vendor/lib, /system/lib]]
    Show stack trace
  4. samk17cmutpmvia GitHub1 week ago
    Didn't find class "com.google.devtools.build.android.desugar.runtime.ThrowableExtension" on path: DexPathList[[zip file "/data/app/jp.co.neolab.calling-1/base.apk"],nativeLibraryDirectories=[/data/app/jp.co.neolab.calling-1/lib/arm, /data/app/jp.co.neolab.calling-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
    Show stack trace
  5. CtrlAltCutenessvia GitHub1 week ago
    Didn't find class "com.example.termuxam.Am" on path: DexPathList[[zip file "/data/data/com.termux/files/usr/libexec/termux-am/am.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
    Show stack trace
  6. yuv4ikvia GitHub1 week ago
    Didn't find class "com.airbnb.lottie.R$styleable" on path: DexPathList[[zip file "/data/app/com.zzz.yyy-ORTNOMSPCK8rFQTnNTpx9A==/base.apk"],nativeLibraryDirectories=[/data/app/com.zzz.yyy-ORTNOMSPCK8rFQTnNTpx9A==/lib/x86, /data/app/com.zzz.yyy-ORTNOMSPCK8rFQTnNTpx9A==/base.apk!/lib/x86, /system/lib, /vendor/lib]]
    Show stack trace
  7. sunbyyvia GitHub2 weeks ago
    Didn't find class "com.google.android.finsky.utils.SelfUpdateScheduler" on path: DexPathList[[zip file "/system/priv-app/Phonesky/Phonesky.apk"],nativeLibraryDirectories=[/system/priv-app/Phonesky/lib/arm, /vendor/lib, /system/lib]]
    Show stack trace
  8. andkishorvia GitHub2 weeks ago
    Didn't find class "com.bumptech.glide.Glide" on path: DexPathLi st[[zip file "/data/app/org.nativescript.demo-1/base.apk"],nativeLibraryDirectories=[/data/app/org.nativescript.demo-1/l ib/x86, /data/app/org.nativescript.demo-1/base.apk!/lib/x86, /system/lib, /vendor/lib]]
    Show stack trace
  9. tomholubvia GitHub2 weeks ago
    Didn't find class "android.graphics.drawable.Icon" on path: DexPathList[[zip file "/data/app/com.flowcrypt.email-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.flowcrypt.email-1, /vendor/lib, /system/lib]]
    Show stack trace
  10. tomholubvia GitHub2 weeks ago
    Didn't find class "android.graphics.drawable.Icon" on path: DexPathList[[zip file "/data/app/com.flowcrypt.email-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.flowcrypt.email-1, /vendor/lib, /system/lib]]
    Show stack trace