Android-job: crash in v21.PlatformJobService.onStopJob

Created on 30 Apr 2018  路  1Comment  路  Source: evernote/android-job

We are getting a lot of these crashes reported in Google Play, but only on Android 7.1:

java.lang.IllegalStateException: 
  at com.evernote.android.job.JobManager.instance (JobManager.java:139)
  at com.evernote.android.job.v21.PlatformJobService.onStopJob (PlatformJobService.java:99)
  at android.app.job.JobService$JobHandler.handleMessage (JobService.java:152)
  at android.os.Handler.dispatchMessage (Handler.java:102)
  at android.os.Looper.loop (Looper.java:241)
  at android.app.ActivityThread.main (ActivityThread.java:6274)
  at java.lang.reflect.Method.invoke (Method.java)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:886)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:776)

It seems the platform calls v21.PlatformJobService.onStopJob prior to Application.onCreate where the JobManager is created.

Here is out code: https://github.com/tuskyapp/Tusky

bug

Most helpful comment

Fixed with 1.2.6.

>All comments

Fixed with 1.2.6.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anukools picture anukools  路  7Comments

mohamadk picture mohamadk  路  6Comments

adek picture adek  路  6Comments

froesmatheus picture froesmatheus  路  4Comments

karntrehan picture karntrehan  路  5Comments