AndroidRuntime(12220): Process: gn.com.android.update, PID: 12220 E/AndroidRuntime(12220): android.app.RemoteServiceException
AndroidRuntime: FATAL EXCEPTION: main Process: kim.hsl.keep_progress_alive, PID: 23830 android.app.RemoteServiceException
android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground
如果startForeground(0, noti)的id传入0,则会报错RemoteServiceException。...AndroidRuntime: FATAL EXCEPTION: main Process: com.rustfisher.tutorial2020, PID: 29871 android.app.RemoteServiceException
Trace.TRACE_TAG_ACTIVITY_MANAGER); break; case SCHEDULE_CRASH: throw new RemoteServiceException
需要静态声明权限 参考文章: android.app.RemoteServiceException
AndroidRuntime: FATAL EXCEPTION: main Process: com.snail.labaffinity, PID: 21513 android.app.RemoteServiceException
PendingIntent.getActivity(this, 1, new Intent(), flags); return pendingIntent; } (2)错误代码:android.app.RemoteServiceException