Cactus icon indicating copy to clipboard operation
Cactus copied to clipboard

Android O的应用crash和anr问题。

Open lzy19920619 opened this issue 4 years ago • 3 comments

Samsung Galaxy A51 (a51) Android 10手机开启保活后偶尔会报startForegroundService() did not then call Service.startForeground(),从而引出ANR的问题,可能随着大量手机系统升级到O,后续可能出现的频类会增多。

lzy19920619 avatar Mar 18 '20 05:03 lzy19920619

只能调用hideNotificationAfterO改为false

gyf-dev avatar Mar 31 '20 12:03 gyf-dev

hideNotificationAfterO已经修改为false了,还是收到这个crash .
AndroidRuntime: android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground()

alienzh avatar May 13 '20 09:05 alienzh

只能调用hideNotificationAfterO改为false

方法调用了,但是还是会出现问题

cjecky avatar Jan 10 '22 01:01 cjecky