首页 > 解决方案 > 来自 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)

为什么我Context.startForegroundService() did not then call Service.startForeground()在 Google 的崩溃报告中看不到该部分?我认为这是日志的重要组成部分。

标签: androidgoogle-playcrash-reports

解决方案


在 Google Play 仪表板中查看最近发生的崩溃需要时间。在这里,您会看到两个不同崩溃的两个不同崩溃日志。在 Google 仪表板中查找相同的崩溃应用持续时间(日期)和设备品牌等过滤器来查找您的崩溃。

还可以更好地使用 Firebase Crashlytics 在您的应用中进行崩溃报告。


推荐阅读