Android Studio Logcat not showing logs

68,852

Solution 1

enter image description here

In my case in Android 2.2, for some reason, Firebase was selected by default in the dropdown box marked above. So logs didn't drop. I just needed to change it to No Filters. Then it worked.

I even tried restarting the logcat, that didn't work too. No Filters did the magic.

Hope this helps someone.

Edit: You can as well select Show only selected application for logcat to show only the current debugging process, i.e your app.

Solution 2

  • You may be hiding it, try pressing Alt + 6 to open Log tab.

  • Look at the log level:- it must be verbose.

  • Restart adb.

  • If that doesn't works restart the android studio.

Solution 3

In Logcat window reselect your device then reselect your app

if it didn't appear restart adb using two commands:

adb kill-server
adb start-server

Solution 4

Besides what other guys said, look if you have written something in the search box that causes this problem(it was my case).

Note: Even in case of a restart, what you have written in search box won't delete and you need to delete it yourself. enter image description here

Solution 5

Try the following Steps:-

Step 1. Goto File > Invalidate Caches and Restart > Invalidate and Restart. Android Studio will restart automatically and logcat will work as expected.

Refer screenshots :

enter image description here Click on Invalidate and Restart

Step 2. If Step(1) didn't worked then try this : Goto Terminal > cd till your platform-tools directory (eg. in Windows default location is C:\Users\\AppData\Local\Android\Sdk\platform-tools). Now type following command :

adb kill-server

adb start-server

enter image description here

Step 3: If Step(1)&(2) both didn't worked then simply try clicking on Re-Start Logging button available in Logcat option. Refer screenshot - (Green colour curved arrow with grey box)

enter image description here

Share:
68,852
squiroid
Author by

squiroid

Wanna know more about me rachitgulati.com. Contact me..... Linked In ∞ -->Code---->Sleep-->∞

Updated on November 08, 2021

Comments

  • squiroid
    squiroid over 2 years

    There is very awkward thing I am facing. Logcat is shown in debugging application, but while running (not debugging) application, it is not showing Logcat.

    I tried restarting it but nothing is happening.

  • squiroid
    squiroid about 9 years
    I can see the panal but there is nothing inside it.
  • squiroid
    squiroid about 9 years
    I already mentioned it that i already restarted adb but nothing happened.
  • Tristan Wiley
    Tristan Wiley about 9 years
    Ah my bad, thought you meant restarted Android Studio. Have you tried restarting Android Studio, logcat, and adb?
  • squiroid
    squiroid about 9 years
    Thanks for effort,I restarted android studio it is working now:-)
  • Manny265
    Manny265 over 7 years
    dont know why I ddnt see that all this time! it was stuck on Firebase filters
  • Cletus Ajibade
    Cletus Ajibade over 7 years
    I am glad that helped @Manny264
  • h.nodehi
    h.nodehi over 7 years
    Same problem with Android Studio 2.2.3, and this post solved the problem!
  • mumayank
    mumayank over 6 years
    saved my day really :)
  • Nikhil Wagh
    Nikhil Wagh over 6 years
    can you please elaborate the process.
  • Pablo Alfonso
    Pablo Alfonso about 4 years
    After upgrade to Android 3.6.1, I have experienced this issue multiple times. The only thing that works in my case is RESTARTING THE DEVICE.
  • Irfan
    Irfan over 3 years
    after restarting adb and laptop many many times, it worked only after restarting the mobile device. thank you.
  • Kuldeep Kumar
    Kuldeep Kumar about 3 years
    Tried everything but didn't work ... then as suggested at step 3, I clicked on the "Re-Start Logging" button and IT WORKED!!! Thanks :)
  • Tarun Deep Attri
    Tarun Deep Attri almost 3 years
    I was facing same issue on AS 4.2
  • Stigma
    Stigma almost 3 years
    Same thing happened to me.
  • Sandeep.sarkar
    Sandeep.sarkar about 2 years
    Restarting adb server worked for me