Android Studio Logcat not showing logs
Solution 1
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.
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 :
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
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)
squiroid
Wanna know more about me rachitgulati.com. Contact me..... Linked In ∞ -->Code---->Sleep-->∞
Updated on November 08, 2021Comments
-
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 about 9 yearsI can see the panal but there is nothing inside it.
-
squiroid about 9 yearsI already mentioned it that i already restarted adb but nothing happened.
-
Tristan Wiley about 9 yearsAh my bad, thought you meant restarted Android Studio. Have you tried restarting Android Studio, logcat, and adb?
-
squiroid about 9 yearsThanks for effort,I restarted android studio it is working now:-)
-
Manny265 over 7 yearsdont know why I ddnt see that all this time! it was stuck on Firebase filters
-
Cletus Ajibade over 7 yearsI am glad that helped @Manny264
-
h.nodehi over 7 yearsSame problem with Android Studio 2.2.3, and this post solved the problem!
-
mumayank over 6 yearssaved my day really :)
-
Nikhil Wagh over 6 yearscan you please elaborate the process.
-
Pablo Alfonso about 4 yearsAfter 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 over 3 yearsafter restarting adb and laptop many many times, it worked only after restarting the mobile device. thank you.
-
Kuldeep Kumar about 3 yearsTried 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 almost 3 yearsI was facing same issue on AS 4.2
-
Stigma almost 3 yearsSame thing happened to me.
-
Sandeep.sarkar about 2 yearsRestarting adb server worked for me