question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NoClassDefFoundError: Failed resolution of: Lcom/evernote/android/job/JobRescheduleService

See original GitHub issue

On API 5.1, getting this error.

compile 'com.evernote:android-job:1.2.0-RC4'

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/evernote/android/job/JobRescheduleService; at com.evernote.android.job.JobManager.<init>(JobManager.java:159) at com.evernote.android.job.JobManager.create(JobManager.java:112) at com.xxx.xxx.App.onCreate(App.java:20) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1017) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4858) at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method) at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:334) at android.app.ActivityThread.handleBindApplication(<Xposed>) at android.app.ActivityThread.access$1500(ActivityThread.java:178) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1531) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5637) 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:959) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754) at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.evernote.android.job.JobRescheduleService" on path: DexPathList[[zip file "/data/app/com.xxx.xxx-2/base.apk"],nativeLibraryDirectories=[/data/app/com.xxx.xxx-2/lib/arm64, /vendor/lib64, /system/lib64]] 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 com.evernote.android.job.JobManager.<init>(JobManager.java:159)  at com.evernote.android.job.JobManager.create(JobManager.java:112)  at com.xxx.xxx.App.onCreate(App.java:20)  at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1017)  at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4858)  at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)  at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:334)  at android.app.ActivityThread.handleBindApplication(<Xposed>)  at android.app.ActivityThread.access$1500(ActivityThread.java:178)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1531)  at android.os.Handler.dispatchMessage(Handler.java:111)  at android.os.Looper.loop(Looper.java:194)  at android.app.ActivityThread.main(ActivityThread.java:5637)  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:959)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)  at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)  Suppressed: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/app/JobIntentService; at dalvik.system.DexFile.defineClassNative(Native Method) at dalvik.system.DexFile.defineClass(DexFile.java:226) at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219) at dalvik.system.DexPathList.findClass(DexPathList.java:321) at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54) ... 20 more Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.app.JobIntentService" on path: DexPathList[[zip file "/data/app/com.xxx.xxx-2/base.apk"],nativeLibraryDirectories=[/data/app/com.xxx.xxx-2/lib/arm64, /vendor/lib64, /system/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.lang.ClassLoader.loadClass(ClassLoader.java:469) ... 25 more Suppressed: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.app.JobIntentService" on path: DexPathList[[dex file "/data/dalvik-cache/xposed_XResourcesSuperClass.dex"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.lang.ClassLoader.loadClass(ClassLoader.java:504) ... 26 more Suppressed: java.lang.ClassNotFoundException: android.support.v4.app.JobIntentService at java.lang.Class.classForName(Native Method) at java.lang.BootClassLoader.findClass(ClassLoader.java:781) at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) at java.lang.ClassLoader.loadClass(ClassLoader.java:504) ... 27 more Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available Suppressed: java.lang.ClassNotFoundException: Didn't find class "com.evernote.android.job.JobRescheduleService" on path: DexPathList[[dex file "/data/dalvik-cache/xposed_XResourcesSuperClass.dex"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoa.....

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:20

github_iconTop GitHub Comments

1reaction
vRallevcommented, Oct 27, 2017

I’m sorry, you’re on your own and need to address these lines yourself. I’m only supporting the DailyJob class inside of version 1.2.0 and recommend to use SDK 26 instead.

1reaction
thisismohitguptacommented, Oct 17, 2017

@Merka84 I have been using v1.1.12 on Oreo without any known troubles. As suggested by @vRallev there is a helper class DailyJob in v1.2 which I copied over and used. works fine for my use case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed resolution of: Landroid/support/v4/os/BuildCompat ...
NoClassDefFoundError in Java comes when Java Virtual Machine is not able to find a particular class at runtime which was available at compile...
Read more >
java.lang.NoClassDefFoundError: Failed resolution ... - GitHub
Describe the bug Below exception is thrown when I init the trust kit for android using below line TrustKit.
Read more >
java.lang.NoClassDefFoundError Failed resolution of: Lbgyx
Im Getting following exception for one of my app users in production, Here ?Im giving stack trace and other details. Gradle dependencies :....
Read more >
Failed resolution of: Lsqip/internal/R$attr; ---> Java.Lang ...
NoClassDefFoundError : Failed resolution of: Lsqip/internal/R$attr; ---> Java.Lang.ClassNotF. Trying finish off creating a binding library and ...
Read more >
In-App Payments: Error ('Failed resolution of: Lcom/squareup ...
I get the following error: Java.Lang.NoClassDefFoundError: 'Failed resolution of: Lcom/squareup/Card$Brand;' 12-16…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found