Logcat not displaying my log calls

前端 未结 30 1713
悲&欢浪女
悲&欢浪女 2020-11-28 22:45

I\'m a total noob at Android programming, and wanted to learn how to debug my apps. I can\'t seem to have my Log.i|d|v calls displayed in the LogCat.

Here\'s the

相关标签:
30条回答
  • 2020-11-28 23:45

    I've had the same problem using Android Studio and managed to get around by selecting No Filters in the select box in the top right corner of LogCat. By doing this I started receiving everything Android logs in the background into LogCat including my missing Log calls.

    enter image description here

    0 讨论(0)
  • 2020-11-28 23:45

    I made the mistake of typing in a search term in the logcat search box. I forgot to delete it and hence couldn't see the new logs. Since they didn't match my search term and weren't displayed.

    0 讨论(0)
  • 2020-11-28 23:47

    In my case, I had to remove this line:

        <application
             android:debuggable="false"  <!-- Remove this line -->
             ..../>
    

    From Application tag in my Manifest file.

    0 讨论(0)
  • 2020-11-28 23:49

    If all else fails:

    I did all the above things and couldn't figure out what was wrong,

    Test with:

    adb logcat
    

    to figure out that my entries were infact in logcat, but twas adt's quirks.

    Fix:

    Restart eclipse

    This was the only thing that fixed it.

    0 讨论(0)
  • 2020-11-28 23:49

    There is one more thing to watch for:

    On the top right side of the logcat there is a dropdown table for filtering messages by type. Make sure it's on the level you are looking for (if it will be on the assert level, it will likely leave your logcat empty).

    0 讨论(0)
  • 2020-11-28 23:49

    I spent several hours on such case. I saw only touch keys logs. Nothing more. Problem was... smarthphone. After restarting was OK. Disconnecting cable caused problem returned. Had to restart it again. Looks like the Android USB communication is not well designed.

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