当部署在 Google Play 商店中的应用程序崩溃时,您会看到这些崩溃报告。假设我有异常被 Log.e
捕获和记录,有没有办法以任何方式查看这些异常?换句话说:当我想查看对我的工作流程真正重要的错误时,在 Google Play Developer Console 中查看这些异常的唯一方法是在应用程序中抛出 RuntimeException
以故意使应用程序崩溃? (那真的很愚蠢)。
背景:我目前正在实现应用内结算。购买过程中确实有很多阶段可能会发生异常。如果客户联系我并询问为什么购买过程不起作用,如果我在 Google Play Developer Console 中没有看到任何信息,我应该如何知道?
最佳答案
您可以使用 Firebase Crashlytics
Firebase Crashlytics is a lightweight, realtime crash reporter that helps you track, prioritize, and fix stability issues that erode your app quality. Crashlytics saves you troubleshooting time by intelligently grouping crashes and highlighting the circumstances that lead up to them.
关键能力
精选的崩溃报告
Crashlytics synthesizes an avalanche of crashes into a manageable list of issues, provides contextual information, and highlights the severity and prevalence of crashes so you can pinpoint the root cause faster.
增强的环境信息
Crashlytics allows you to filter reports by operating system, version, hardware configuration, and more. Find out if your app is crashing more frequently on a particular manufacturer's devices, with certain API versions, or even in a specific screen orientation.
实时提醒
Get realtime alerts for new issues, regressed issues, and growing issues that might require immediate attention.
关于Android:如何获取有关在 Google Play 开发者控制台中捕获的异常的信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48006744/