How do I obtain crash-data from my Android application?

前端 未结 30 2525
庸人自扰
庸人自扰 2020-11-22 01:10

How can I get crash data (stack traces at least) from my Android application? At least when working on my own device being retrieved by cable, but ideally from any instance

30条回答
  •  盖世英雄少女心
    2020-11-22 01:36

    If you want answers immediately you can use logcat

    $adb shell logcat -f /sdcard/logoutput.txt *:E

    If there's too much junk in your log right now, try clearing it first.

    $adb shell logcat -c

    Then try running your app then logcat again.

提交回复
热议问题