My app just crashed, how can I get the crash log?

拈花ヽ惹草 提交于 2020-02-28 15:51:04

问题


I am testing my app on my actual device, and it seems like there is a memory leak. The app has crashed after a couple of hours. How can I pull up the log of the crash?

I plugged my phone in via USB and tried:

adb logcat -v

but I get the following message in my terminal:

- waiting for device -
error: more than one device and emulator

How can I diagnose my crash?


回答1:


That's because there's...

more than one device and emulator

The error is fairly clear. So, what you do in this case is:

adb devices

And it lists the name of your devices/emulators. Then:

adb -s name-of-your-device logcat 


来源:https://stackoverflow.com/questions/3664630/my-app-just-crashed-how-can-i-get-the-crash-log

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!