I installed Android Studio yesterday, and I tried to use the LogCat to see the logs. But there is nothing to show in the logcat. I used the terminal to run ./adb logcat
and it works.
Is there someone who can explain to me how to use logcat in Android Studio?
Solution 1: Restarting your Android StudioIn your IDE Go to File > Invalidate Caches and Restart > Invalidate and Restart. This Solution will clear all the caches of Android studio IDE and restart it automatically, By the method, there are 80% change that Logcat will start work as before.
Go to Project Structure -> Facets -> “+” -> Android -> Select Project Logcat should now be visible.
Solution 1: Restarting Logcat You need to press Alt + 6 twice to restart the Logcat. Restarting logcat often helps when it becomes irresponsive.
Restarting logcat helps me always.
I get into this state often. Logcat is blank. Debugging works, I can hit breakpoints. No filters are set. Log level is on Verbose. I fix it by repeatedly looping through the following:
adb kill-server && adb start-server
ddms
on the command line.And finally restarting the computer if all else fails.
The problem is intermittent, I think Android Studio is just buggy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With