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 rest
I had the same issue, and I resolved it by the following actions:
First, open the terminal in android studio and navigate to the following path:
C:\Users\user_name\AppData\Local\Android\Sdk\platform-tools
Second, enter the command: adb reboot
.
It takes about 2 minutes, but now logcat is functioning again and showing every logcat.
This problem appeared after reinstalling (changing) GitHub in Android Studio. it happened when I connected the GitHub Desktop (git.exe) to the Android Studio. And right after that logcat fell.
Solution: commit + push = fixed logcat))
I did not understand how it works, but it is a fact
Restarting both emulator and android studio worked for me!
I had this code:
Log.e(getMyName(),message);
The problem with this was, the variable that the getter method was accessing was null. Android Studio did not give me any error about it! Seems this was silently not letting the Log.e statement to work. I checked many blogs but couldn't find the solution. This small miss wasted my complete one hour. Hope this helps someone.
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.
You need to press Alt+6 twice to restart the logcat window. That way it'll show the log outputs.
Go to your sdk Folder --> Platform tools --> adb click 2 times
using this adb server restart again
Please check your Sdk Location My Location is d drive Please See This