Branson Camp
Branson Camp

Reputation: 671

Show Log From AVD

I am testing my application on an Android Virtual Device (AVD) and have noticed my app crashes after a certain button is pressed. The diolouge is Unfortunately, myApplication has stopped. without any option to report the crash. My question is how can I see the AVD's output to see what went wrong to fix the crash.

I also checked the Run Window during the crash, but all it said was Application Terminated. without providing why it crashed. Looking at a log file could allow me to find the bug, I just need to know where to get it. Thanks.

AVD: 2.7" mdpi running Android 7.1

Upvotes: 1

Views: 8044

Answers (1)

K.Sopheak
K.Sopheak

Reputation: 23144

In order to look the crash report, see in the Logcat Window. When your app is crash, don't click OK. Open the Logcat you will see the error. If you don't see any report in window, use this comment

adb kill-server

adb start-server

Hope it helps.

Upvotes: 2

Related Questions