[1.2.0-RC1] Didn't find class "android.app.job.JobServiceEngine"
See original GitHub issueHey,
looks like version 1.2.0-RC1 doesn’t work on pre-Oreo devices.
While adding JobCreator in the Application class JobManager.create(this).addJobCreator(new SampleJobCreator());
the following error about missing android.app.job.JobServiceEngine
class occurs:
09-02 20:27:52.601 9871-9871/com.sampleapp I/art: Rejecting re-init on previously-failed class java.lang.Class<android.support.v4.app.JobIntentService$JobServiceEngineImpl>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/app/job/JobServiceEngine;
09-02 20:27:52.601 9871-9871/com.sampleapp I/art: at void com.evernote.android.job.JobRescheduleService.startService(android.content.Context) (JobRescheduleService.java:29)
09-02 20:27:52.601 9871-9871/com.sampleapp I/art: at void com.evernote.android.job.JobManager.<init>(android.content.Context) (JobManager.java:159)
09-02 20:27:52.601 9871-9871/com.sampleapp I/art: at com.evernote.android.job.JobManager com.evernote.android.job.JobManager.create(android.content.Context) (JobManager.java:112)
09-02 20:27:52.601 9871-9871/com.sampleapp I/art: at void com.sampleapp.SampleApplication.setUpJobCreator() (SampleApplication.java:119)
09-02 20:27:52.601 9871-9871/com.sampleapp I/art: at void com.sampleapp.SampleApplication.onCreate() (SampleApplication.java:73)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void android.app.Instrumentation.callApplicationOnCreate(android.app.Application) (Instrumentation.java:1024)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:5405)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void android.app.ActivityThread.-wrap2(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:-1)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1546)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void android.os.Looper.loop() (Looper.java:154)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6121)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:889)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:779)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: Caused by: java.lang.ClassNotFoundException: Didn't find class "android.app.job.JobServiceEngine" on path: DexPathList[[zip file "/data/app/com.sampleapp-2/base.apk", zip file "/data/app/com.sampleapp-2/split_lib_dependencies_apk.apk", zip file "/data/app/com.sampleapp-2/split_lib_slice_0_apk.apk", zip file "/data/app/com.sampleapp-2/split_lib_slice_1_apk.apk", zip file "/data/app/com.sampleapp-2/split_lib_slice_2_apk.apk", zip file "/data/app/com.sampleapp-2/split_lib_slice_3_apk.apk", zip file "/data/app/com.sampleapp-2/split_lib_slice_4_apk.apk", zip file "/data/app/com.sampleapp-2/split_lib_slice_5_apk.apk", zip file "/data/app/com.sampleapp-2/split_lib_slice_6_apk.apk", zip file "/data/app/com.sampleapp-2/split_lib_slice_7_apk.apk", zip file "/data/app/com.sampleapp-2/split_lib_slice_8_apk.apk", zip file "/data/app/com.sampleapp-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.sampleapp-2/lib/arm64, /system/lib64, /vendor/lib64]]
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void com.evernote.android.job.JobRescheduleService.startService(android.content.Context) (JobRescheduleService.java:29)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void com.evernote.android.job.JobManager.<init>(android.content.Context) (JobManager.java:159)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at com.evernote.android.job.JobManager com.evernote.android.job.JobManager.create(android.content.Context) (JobManager.java:112)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void com.sampleapp.SampleApplication.setUpJobCreator() (SampleApplication.java:119)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void com.sampleapp.SampleApplication.onCreate() (SampleApplication.java:73)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void android.app.Instrumentation.callApplicationOnCreate(android.app.Application) (Instrumentation.java:1024)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:5405)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void android.app.ActivityThread.-wrap2(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:-1)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1546)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void android.os.Looper.loop() (Looper.java:154)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6121)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:889)
09-02 20:27:52.602 9871-9871/com.sampleapp I/art: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:779)
Launching on Oreo looks fine. Am I missing something in configuration for pre-Oreo devices?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:21
Top Results From Across the Web
Android Could not find class 'android.app.job.JobScheduler'
JobScheduler API is was introduced from API 5.0. So it won't work on older versions like 4.2.2 as a result you encounter the...
Read more >JobService - Android Developers
This service executes each incoming job on a Handler running on your ... class, that JobService may receive multiple calls to onStartJob(android.app.job.
Read more >3.x Change Log - OkHttp
Fix: Work around a crash in Android 10 and 11 that may be triggered when two threads concurrently close an SSL socket. This...
Read more >Code Reuse a Peril for Secure Software Development - Vulners
On one hand, developers use reliable code that at a later date is found to have a vulnerability. Second, insecure code is used...
Read more >CVE - Search Results - MITRE
0 and earlier allows attackers to check for the existence of an attacker-specified file path on the Jenkins controller file system and to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am seeing this on Moto X Play with Android 7.1.1
I/art: Rejecting re-init on previously-failed class java.lang.Class<android.support.v4.app.JobIntentService$JobServiceEngineImpl>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/app/job/JobServiceEngine; I/art: at void com.evernote.android.job.JobRescheduleService.startService(android.content.Context) (JobRescheduleService.java:32) I/art: at void com.evernote.android.job.JobManager.<init>(android.content.Context) (JobManager.java:159) I/art: at com.evernote.android.job.JobManager com.evernote.android.job.JobManager.create(android.content.Context) (JobManager.java:112) I/art: at void com.appbootup.ipo.news.data.Application.onCreate() (Application.java:133) I/art: at void android.app.Instrumentation.callApplicationOnCreate(android.app.Application) (Instrumentation.java:1046) I/art: at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:5444) I/art: at void android.app.ActivityThread.-wrap2(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:-1) I/art: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1558) I/art: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102) I/art: at void android.os.Looper.loop() (Looper.java:154) I/art: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6165) I/art: at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2) I/art: at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:888) I/art: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:778) I/art: Caused by: java.lang.ClassNotFoundException: Didn't find class "android.app.job.JobServiceEngine" on path: DexPathList[[zip file "/data/app/com.appbootup.ipo.news.debug-2/base.apk", zip file "/data/app/com.appbootup.ipo.news.debug-2/split_lib_directories_apk.apk"],nativeLibraryDirectories=[/data/app/com.appbootup.ipo.news.debug-2/lib/arm, /data/app/com.appbootup.ipo.news.debug-2/base.apk!/lib/armeabi-v7a, /data/app/com.appbootup.ipo.news.debug-2/split_lib_directories_apk.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]] I/art: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56) I/art: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380) I/art: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) I/art: at void com.evernote.android.job.JobRescheduleService.startService(android.content.Context) (JobRescheduleService.java:32) I/art: at void com.evernote.android.job.JobManager.<init>(android.content.Context) (JobManager.java:159) I/art: at com.evernote.android.job.JobManager com.evernote.android.job.JobManager.create(android.content.Context) (JobManager.java:112) I/art: at void com.appbootup.ipo.news.data.Application.onCreate() (Application.java:133) I/art: at void android.app.Instrumentation.callApplicationOnCreate(android.app.Application) (Instrumentation.java:1046) I/art: at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:5444) I/art: at void android.app.ActivityThread.-wrap2(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:-1) I/art: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1558) I/art: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102) I/art: at void android.os.Looper.loop() (Looper.java:154) I/art: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6165) I/art: at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2) I/art: at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:888) I/art: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:778)
Same error on Nexus 5 with Lineage OS 7.1.1. This custom ROM is based on AOSP ROM.