1

我们正在使用以下 WorkManager

def work_version = "1.0.0-alpha02"
implementation "android.arch.work:work-runtime:$work_version" // use -ktx for Kotlin
// optional - Firebase JobDispatcher support
implementation "android.arch.work:work-firebase:$work_version"

我们没有升级1.0.0-alpha02,因为我们要保持我们的targetSdkVersion 27

在生产中,我们注意到以下崩溃报告。

java.lang.IllegalStateException: 
  at android.os.Parcel.readException (Parcel.java:1701)
  at android.os.Parcel.readException (Parcel.java:1646)
  at android.app.job.IJobScheduler$Stub$Proxy.schedule (IJobScheduler.java:158)
  at android.app.JobSchedulerImpl.schedule (JobSchedulerImpl.java:42)
  at androidx.work.impl.background.systemjob.SystemJobScheduler.scheduleInternal (SystemJobScheduler.java:85)
  at androidx.work.impl.background.systemjob.SystemJobScheduler.schedule (SystemJobScheduler.java:64)
  at androidx.work.impl.Schedulers.scheduleInternal (Schedulers.java:98)
  at androidx.work.impl.Schedulers.schedule (Schedulers.java:69)
  at androidx.work.impl.WorkManagerImpl.rescheduleEligibleWork (WorkManagerImpl.java:398)
  at androidx.work.impl.utils.ForceStopRunnable.run (ForceStopRunnable.java:69)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1133)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:607)
  at java.lang.Thread.run (Thread.java:762)

请建议我们如何摆脱这些崩溃。谢谢。

4

0 回答 0