android - 来自 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 的崩溃报告中看不到该部分?我认为这是日志的重要组成部分。
解决方案
在 Google Play 仪表板中查看最近发生的崩溃需要时间。在这里,您会看到两个不同崩溃的两个不同崩溃日志。在 Google 仪表板中查找相同的崩溃应用持续时间(日期)和设备品牌等过滤器来查找您的崩溃。
还可以更好地使用 Firebase Crashlytics 在您的应用中进行崩溃报告。
推荐阅读
- sql - 如何在表中插入 SQL 查询
- java - JAXB 如何删除 xml 中的默认 ns2 名称空间前缀
- swift - 为什么在 SwiftUI 中过渡结束后会应用 edgeIgnoringSafeArea 修饰符?
- python-3.x - 从有条件的数组中获取索引值
- javascript - 使用按钮单击更改 setTimeout 中的延迟
- java - 我如何将 recyclerview 连接到 firebase 数据库插入、更新和删除数据
- python - 在 Pandas 数据框中使用未正确评估的评估语句进行基于逻辑的行选择
- java - Spring Batch:跳过无法写入数据库的记录并继续下一条记录
- php - 虚拟属性 API 平台的 OrderFilter(排序)
- javascript - Reactjs - 我正在尝试在弹出窗口中处理和事件,但在事件执行后弹出窗口没有按应有的方式呈现