Android studio logcat not working

前端 未结 20 2143
迷失自我
迷失自我 2020-12-16 09:55

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

相关标签:
20条回答
  • 2020-12-16 10:27

    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.

    0 讨论(0)
  • 2020-12-16 10:27

    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

    0 讨论(0)
  • 2020-12-16 10:30

    Restarting both emulator and android studio worked for me!

    0 讨论(0)
  • 2020-12-16 10:32

    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.

    0 讨论(0)
  • 2020-12-16 10:33
    • 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.

    0 讨论(0)
  • 2020-12-16 10:34
    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

    0 讨论(0)
提交回复
热议问题