【发布时间】:2019-07-16 03:11:19
【问题描述】:
我有一份来自 Google 的崩溃报告显示:
而在 logcat 中,我会看到如下内容:
FATAL EXCEPTION: main
Process: com.myscrap, PID: 1929
android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground()
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1775)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
为什么我在 Google 的崩溃报告中看不到 Context.startForegroundService() did not then call Service.startForeground() 部分?我认为这是日志的重要组成部分。
【问题讨论】:
标签: android google-play crash-reports