Logcat not displaying my log calls

前端 未结 30 1993
悲&欢浪女
悲&欢浪女 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:25

    There are a number of reasons why you might not see logs, most of which are listed below. Here are some steps to check most reasons:

    1. Make sure you don't have 'android:debuggable="false"' in your AndroidManifest.xml
    2. Make sure your logcat isn't paused and make sure you are scrolled to the bottom
    3. Your filters should either be 'no filters' or your current app
    4. You have the correct device selected in your logcat devices list
    5. If you're not getting any messages, try restarting adb. You can do that from Android Studio by clicking on the 'restart' icon, it's right after the print icon for logcat and it looks like a green curved arrow coming out of a box. If you don't see it, mouse over the '>>' that continues the icon menu when the logcat is too small.

提交回复
热议问题