如何获取Android崩溃日志? [英] How to get Android crash logs?

查看:35
本文介绍了如何获取Android崩溃日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个不在市场上的应用程序(使用调试证书签名),但我想在我的应用程序崩溃时获取崩溃日志数据.在哪里可以找到有关我的应用程序崩溃原因的日志?

I have an app that is not in the market place (signed with a debug certificate), but would like to get crash log data, whenever my application crashes. Where can I find a log of why my app crashed?

推荐答案

如果您的应用正在被其他人下载并在远程设备上崩溃,您可能需要查看 Android 错误报告库(参考 此 SO 帖子).如果它只是在你自己的本地设备上,你可以使用 LogCat. 即使在崩溃发生时设备没有连接到主机,连接设备并发出 adb logcat 命令将下载整个 logcat 历史记录(至少在缓冲的范围内,这通常是大量日志数据,它不是无限的).这些选项中的任何一个都回答您的问题吗?如果没有,您能否尝试进一步澄清您要寻找的内容?

If your app is being downloaded by other people and crashing on remote devices, you may want to look into an Android error reporting library (referenced in this SO post). If it's just on your own local device, you can use LogCat. Even if the device wasn't connected to a host machine when the crash occurred, connecting the device and issuing an adb logcat command will download the entire logcat history (at least to the extent that it is buffered which is usually a loooot of log data, it's just not infinite). Do either of those options answer your question? If not can you attempt to clarify what you're looking for a bit more?

这篇关于如何获取Android崩溃日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆