Android Studio ADB wipes out logcat quickly when app crashes

Android Studio ADB wipes out logcat quickly

At time we may face this kind of annoying issue. In Android Studio, in Android tab ADB wipes out log cat data quickly when app crashes. And makes us not able to find out the code issue.

wipes out

To solve this issue, in Android tab on right side you can see dropdown to select the log filter

logcat2

Select Edit Filter Configuration, and you will see this window

logcat3

In this window, set your application Package Name as shown in  above image. You can set any Filter Name text. and Click OK.

Now, if app crashes, it will show the log data.

Hope it helps somebody…

 

You may also interested in

Failed to install apk on device timeout

In Eclipse ADT, Whenever you’re trying to run app on Android phone by connecting phone to PC. You may see this error Failed to install apk on device timeout. The reason for it ADB connection is closing before running app on device. To fix this issue you need to change ADB Connection timeout settings.

Please follow below step to fix this issue.

Try changing the ADB connection timeout. Defaults to 5000ms, change it to 10000ms to get rid of that problem.

In Eclipse, you can do this by going through Window → Preferences, then Android → DDMS and set ADB connection time out (ms)

device timeout