DeadSystemException start service Android 7

后端 未结 3 608
无人及你
无人及你 2021-02-04 15:07

For the past few weeks, I have on my crash reporter:

Fatal Exception: java.lang.RuntimeException: Unable to start service com.####.MyService@ef705d8 with Intent          


        
3条回答
  •  情书的邮戳
    2021-02-04 15:35

    When the device is being restarted, you cannot run an app. Any app, not just yours but any given app cannot run when the device is restarting. AFAIK it occurs when you try to do something when the system crashes. Meaning if the system crashes and as it restarts your app starts a service or does something you get that error.

    Meaning the exception is not connected to your app, but the Android OS and there is nothing you can do about it.

    The crash being related to starting a service is because that is what your app did when the system crashed.

    So: The error is something the system threw because your app did something when the system did a run-time reboot. There is nothing you can do about this, as you cannot control the Android OS from an app.

提交回复
热议问题