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.

Rejecting re-init on previously-failed class java.lang.Class<com.evernote.android.job.gcm.PlatformGcmService>

See original GitHub issue

I know that this is not the first post of its kind, and while not all issues that may look similar are caused by the same bug in the code, there should be some at least.

Symptoms in this specific case:

Rejecting re-init on previously-failed class java.lang.Class<com.evernote.android.job.gcm.PlatformGcmService>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/gcm/GcmTaskService;
    at boolean com.evernote.android.job.GcmAvailableHelper.isGcmApiSupported(android.content.Context) (GcmAvailableHelper.java:-1)
    at boolean com.evernote.android.job.JobApi.isSupported(android.content.Context) (JobApi.java:115)
    at void com.evernote.android.job.JobProxy$Common.cleanUpOrphanedJob(android.content.Context, int) (JobProxy.java:286)
    at void com.evernote.android.job.JobManager.schedule(com.evernote.android.job.JobRequest) (JobManager.java:176)
    at int com.evernote.android.job.JobRequest.schedule() (JobRequest.java:426)
    at void com.evernote.android.job.JobRequest$2.run() (JobRequest.java:455)
    at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1162)
    at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:636)
    at void java.lang.Thread.run() (Thread.java:764)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.gcm.GcmTaskService" on path: DexPathList[[zip file ...
    at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:125)
    at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
    at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
    at boolean com.evernote.android.job.GcmAvailableHelper.isGcmApiSupported(android.content.Context) (GcmAvailableHelper.java:-1)
    at boolean com.evernote.android.job.JobApi.isSupported(android.content.Context) (JobApi.java:115)
    at void com.evernote.android.job.JobProxy$Common.cleanUpOrphanedJob(android.content.Context, int) (JobProxy.java:286)
    at void com.evernote.android.job.JobManager.schedule(com.evernote.android.job.JobRequest) (JobManager.java:176)
    at int com.evernote.android.job.JobRequest.schedule() (JobRequest.java:426)
    at void com.evernote.android.job.JobRequest$2.run() (JobRequest.java:455)
    at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1162)
    at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:636)
    at void java.lang.Thread.run() (Thread.java:764)
Rejecting re-init on previously-failed class java.lang.Class<com.evernote.android.job.gcm.PlatformGcmService>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/gcm/GcmTaskService;
    at boolean com.evernote.android.job.GcmAvailableHelper.isGcmApiSupported(android.content.Context) (GcmAvailableHelper.java:-1)
    at boolean com.evernote.android.job.JobApi.isSupported(android.content.Context) (JobApi.java:115)
    at void com.evernote.android.job.JobProxy$Common.cleanUpOrphanedJob(android.content.Context, int) (JobProxy.java:286)
    at void com.evernote.android.job.JobManager.schedule(com.evernote.android.job.JobRequest) (JobManager.java:176)
    at int com.evernote.android.job.JobRequest.schedule() (JobRequest.java:426)
    at void com.evernote.android.job.JobRequest$2.run() (JobRequest.java:455)
    at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1162)
    at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:636)
    at void java.lang.Thread.run() (Thread.java:764)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.gcm.GcmTaskService" on path: DexPathList[[zip file ...
    at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:125)
    at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
    at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
    at boolean com.evernote.android.job.GcmAvailableHelper.isGcmApiSupported(android.content.Context) (GcmAvailableHelper.java:-1)
    at boolean com.evernote.android.job.JobApi.isSupported(android.content.Context) (JobApi.java:115)
    at void com.evernote.android.job.JobProxy$Common.cleanUpOrphanedJob(android.content.Context, int) (JobProxy.java:286)
    at void com.evernote.android.job.JobManager.schedule(com.evernote.android.job.JobRequest) (JobManager.java:176)
    at int com.evernote.android.job.JobRequest.schedule() (JobRequest.java:426)
    at void com.evernote.android.job.JobRequest$2.run() (JobRequest.java:455)
    at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1162)
    at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:636)
    at void java.lang.Thread.run() (Thread.java:764)

Prerequisites: I don’t have GCM included and I don’t want it.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:26

github_iconTop GitHub Comments

22reactions
vRallevcommented, Jun 27, 2018

But it’s not crashing, is it?

4reactions
vRallevcommented, Jun 27, 2018

This should be a warning and not crashing your app. Can you confirm it’s crashing your app?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rejecting re-init on previously-failed class java ... - Bountysource
Rejecting re-init on previously-failed class java.lang.Class<com.evernote.android.job.gcm.PlatformGcmService>. evernote.
Read more >
Rejecting re-init on previously-failed class,com.google ...
I figured it out. I seems to be due to conflicting Google Play Services versions. I used the following command to check the...
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 >
Viewing online file analysis results for 'telegroom.apk'
Uses java reflection classes. details: Found invoke in "co.ronash.pushe. ... com.evernote.android.job.v14. ... com.google.android.gms.gcm.
Read more >
Rejecting re-init on previously-failed class java.lang.Classnt
Android : Rejecting re-init on previously - failed class java. lang.Classnt: java. lang.NoClassDefFoundError [ Beautify Your Computer ...
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