java.lang.NoClassDefFoundError

Failed resolution of: Lorg/spongycastle/jce/provider/BouncyCastleProvider; at com.project.CustomApplication.<clinit>(:44)

Samebug tips1

You need to setup a GlideModule before use Glide.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web3957

  • Failed resolution of: Lorg/spongycastle/jce/provider/BouncyCastleProvider; at com.project.CustomApplication.<clinit>(:44)
  • Failed resolution of: Lorg/spongycastle/jce/provider/BouncyCastleProvider; at com.project.CustomApplication.<clinit>(:44)
  • via Stack Overflow by adnx
    , 7 months ago
    Failed resolution of: Lorg/spongycastle/jce/provider/BouncyCastleProvider;
  • Stack trace

    • java.lang.NoClassDefFoundError: Failed resolution of: Lorg/spongycastle/jce/provider/BouncyCastleProvider; at com.project.CustomApplication.<clinit>(:44) at java.lang.reflect.Constructor.newInstance(Native Method) at java.lang.Class.newInstance(Class.java:1572) at android.app.Instrumentation.newApplication(Instrumentation.java:994) at android.app.Instrumentation.newApplication(Instrumentation.java:979) at android.app.LoadedApk.makeApplication(LoadedApk.java:558) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4491) at android.app.ActivityThread.access$1500(ActivityThread.java:144) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5221) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) Caused by: java.lang.ClassNotFoundException: Didn't find class "org.spongycastle.jce.provider.BouncyCastleProvider" on path: DexPathList[[zip file "/data/app/com.project.fr-1/base.apk"],nativeLibraryDirectories=[/data/app/com.project.fr-1/lib/arm, /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) ... 15 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    17 times, 4 minutes ago
    Unknown user
    Once, 5 days ago
    Unknown user
    Once, 6 days ago
    Unknown user
    Once, 1 week ago
    6 times, 2 weeks ago
    158 more bugmates