Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio logcat nothing to show

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?

like image 570
user2506173 Avatar asked Jul 02 '13 17:07

user2506173


People also ask

Why is my Logcat not showing anything in Android?

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.

Can not find Logcat in Android Studio?

Go to Project Structure -> Facets -> “+” -> Android -> Select Project Logcat should now be visible.

How do I restart Logcat?

Solution 1: Restarting Logcat You need to press Alt + 6 twice to restart the Logcat. Restarting logcat often helps when it becomes irresponsive.


2 Answers

Restarting logcat helps me always.

enter image description here

like image 163
Amio.io Avatar answered Sep 23 '22 08:09

Amio.io


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:

  • Restart logcat (see Zatziky's answer above)
  • Change the log level to Debug (or anything else) and back to Verbose.
  • unplugging and plugging back in the device
  • running adb kill-server && adb start-server
  • Close Android Studio and launch ddms on the command line.
  • Restart Android Studio

And finally restarting the computer if all else fails.

The problem is intermittent, I think Android Studio is just buggy.

like image 33
Robert Karl Avatar answered Sep 20 '22 08:09

Robert Karl