How to get Android crash logs?

2020-01-26 13:04发布

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?

17条回答
相关推荐>>
2楼-- · 2020-01-26 13:24

This is from http://www.herongyang.com/Android/Debug-adb-logcat-Command-Debugging.html

You can use adb:

adb logcat AndroidRuntime:E *:S
查看更多
The star\"
3楼-- · 2020-01-26 13:28

You can use Apphance. This is a cross-platform service (now mainly Android, iOS with other platforms on their way) which allows to debug remotely any mobile device (Android, iOS now - others under development). It's much more than just a crashlog, in fact it is much more: logging, reporting of problems by testers, crashlogs. It takes about 5 minutes to integrate. Currently you can request for access to closed beta.

Disclaimer: I am CTO of Polidea, a company behind Apphance and co-creator of it.

Update: Apphance is no longer closed beta! Update 2: Apphance is available as part of http://applause.com offering

查看更多
男人必须洒脱
4楼-- · 2020-01-26 13:30

If you are looking for a basic crash reporting tool, try crashlytics.

If you want a more advanced reporting tool, Checkout Gryphonet. It logs all the crashes occured along with the exact line of code that caused the crash along with automated markers that show you the steps the user took prior to the crash and more.

Good luck!

查看更多
做自己的国王
5楼-- · 2020-01-26 13:32

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?

查看更多
Bombasti
6楼-- · 2020-01-26 13:32

You can also use library crashcatcher

查看更多
够拽才男人
7楼-- · 2020-01-26 13:32

If you're just looking for the crash log while your phone is connected to the computer, use the DDMS view in Eclipse and the report is right there in LogCat within DDMS when your app crashes while debugging.

查看更多
登录 后发表回答