Rejecting re-init on previously-failed class (JobServiceEngineImpl)
See original GitHub issueAfter updating to 1.2.6 I see this in my logcat. It’s related to the method in Application class
JobManager.create(this).addJobCreator(new MyJobCreator());
It’s green, it’s not crashing but it’s strange. Not sure if I can hide this kind of error in logs. I can see error in Emulator API24 Play Store.
I’m using Lib version: 1.2.6 gradle: gradle:3.1.2 compileSdkVersion 27 buildToolsVersion ‘27.0.3’ target: 27 Support Library: 27.1.1 Play Services: 12.0.1 I’m not using GCM - so I’m using hack in manifest for not using it
05-30 12:44:34.293 21582-21582/? 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;
at void com.evernote.android.job.JobRescheduleService.startService(android.content.Context) (JobRescheduleService.java:44)
at void com.evernote.android.job.JobManager.<init>(android.content.Context) (JobManager.java:149)
at com.evernote.android.job.JobManager com.evernote.android.job.JobManager.create(android.content.Context) (JobManager.java:102)
at void {myPackageNameHidden}.MyAppNameApplication.onCreate() (MyAppNameApplication.java:36)
at void android.app.Instrumentation.callApplicationOnCreate(android.app.Application) (Instrumentation.java:1024)
at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:5361)
at void android.app.ActivityThread.-wrap2(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:-1)
at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1528)
at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
at void android.os.Looper.loop() (Looper.java:154)
at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6077)
at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:866)
at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:756)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.app.job.JobServiceEngine" on path: DexPathList[[zip file "/data/app/{myPackageNameHidden}-1/base.apk", zip file "/data/app/{myPackageNameHidden}-1/split_lib_dependencies_apk.apk", zip file "/data/app/{myPackageNameHidden}-1/split_lib_slice_0_apk.apk", zip file "/data/app/{myPackageNameHidden}-1/split_lib_slice_1_apk.apk", zip file "/data/app/{myPackageNameHidden}-1/split_lib_slice_2_apk.apk", zip file "/data/app/{myPackageNameHidden}-1/split_lib_slice_3_apk.apk", zip file "/data/app/{myPackageNameHidden}-1/split_lib_slice_4_apk.apk", zip file "/data/app/{myPackageNameHidden}-1/split_lib_slice_5_apk.apk", zip file "/data/app/{myPackageNameHidden}-1/split_lib_slice_6_apk.apk", zip file "/data/app/{myPackageNameHidden}-1/split_lib_slice_7_apk.apk", zip file "/data/app/{myPackageNameHidden}-1/split_lib_slice_8_apk.apk", zip file "/data/app/{myPackageNameHidden}-1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/{myPackageNameHidden}-1/lib/x86, /system/lib, /vendor/lib]]
at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
05-30 12:44:34.294 21582-21582/? I/art: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
at void com.evernote.android.job.JobRescheduleService.startService(android.content.Context) (JobRescheduleService.java:44)
at void com.evernote.android.job.JobManager.<init>(android.content.Context) (JobManager.java:149)
at com.evernote.android.job.JobManager com.evernote.android.job.JobManager.create(android.content.Context) (JobManager.java:102)
at void {myPackageNameHidden}.MyAppNameApplication.onCreate() (MyAppNameApplication.java:36)
at void android.app.Instrumentation.callApplicationOnCreate(android.app.Application) (Instrumentation.java:1024)
at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:5361)
at void android.app.ActivityThread.-wrap2(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:-1)
at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1528)
at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
at void android.os.Looper.loop() (Looper.java:154)
at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6077)
at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:866)
at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:756)
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
Rejecting re-init on previously-failed class java.lang.Class<nt>
I would try a clean and reset-cache. File -> Invalidate Cache and restart.
Read more >Rejecting re-init on previously-failed class java.lang.Class<uJ>
i used the new mediation test suite all implemented correctly with a internal error for ad loading. and no ads appear test or...
Read more >解決Rejecting re-init on previously-failed class <androidx.core ...
Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/ ...
Read more >Activiti User Guide
The first listener will receive events of any type, with a listener implementation based on a fully-qualified class name. The second listener is...
Read more >MediaPlayer - Android Developers
Under all these error conditions, the internal player engine invokes a user ... Calling start() has no effect on a MediaPlayer object that...
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 had the same problem with com.android.support:appcompat-v7:28.0.0. It kept showing an error in logs
Rejecting re-init on previously-failed class java.lang.Class<android.support.v4.view.ViewCompat$OnUnhandledKeyEventListenerWrapper>: java.lang.NoClassDefFoundError
This is resolved by adding below to app build.gradle
I have the same problem when using AppMetrica