Android studio logcat not working

前端 未结 20 2300
迷失自我
迷失自我 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: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.

提交回复
热议问题