8

我已将目标更改为 API 27 (Android O) 并将 IntentService 迁移到 JobIntentService 之后它在 Android O(8) 及更高版本的某些设备中开始崩溃。

这是崩溃日志。

Fatal Exception: java.lang.RuntimeException: An error occurred while executing doInBackground()
   at android.os.AsyncTask$3.done(AsyncTask.java:353)
   at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
   at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
   at java.util.concurrent.FutureTask.run(FutureTask.java:271)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
   at java.lang.Thread.run(Thread.java:764)
Caused by java.lang.SecurityException: Caller no longer running, last stopped +2s213ms because: timed out while starting
   at android.os.Parcel.readException(Parcel.java:1943)
   at android.os.Parcel.readException(Parcel.java:1889)
   at android.app.job.IJobCallback$Stub$Proxy.dequeueWork(IJobCallback.java:191)
   at android.app.job.JobParameters.dequeueWork(JobParameters.java:196)
   at android.support.v4.app.JobIntentService$JobServiceEngineImpl.dequeueWork(SourceFile:314)
   at android.support.v4.app.JobIntentService.dequeueWork(SourceFile:639)
   at android.support.v4.app.JobIntentService$CommandProcessor.doInBackground$10299ca(SourceFile:2389)
   at android.os.AsyncTask$2.call(AsyncTask.java:333)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
   at java.lang.Thread.run(Thread.java:764)
4

1 回答 1

0

在这里阅读:https ://issuetracker.google.com/issues/63622293似乎是谷歌错误

于 2018-08-03T06:33:49.843 回答