Logcat not displaying my log calls

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

    Please go to Task Manager and kill the adb.exe process. Restart your eclipse again.

    or

    try adb kill-server and then adb start-server command.

    0 讨论(0)
  • 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.
    0 讨论(0)
  • 2020-11-28 23:25

    Using the SDK 4.0.3 you have to explicitly select it on debug configurations > project > target or else it will never show using Eclipse Indigo (3.7). Of course an eclipse restart ensues.

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

    I have this problems and fixed, String TAG without space:

    "my tag" // noting show
    "my_tag" // is ok

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

    Probably it's not be correct, and a little bit longer, but I solved this problem (Android Studio) by using this:

    System.out.println("Some text here");
    

    Like this:

    try {
           ...code here...
    } catch(Exception e) {
      System.out.println("Error desc: " + e.getMessage());
    }
    
    0 讨论(0)
  • 2020-11-28 23:26

    make your app force close once this will start LogCat again ...

    use this for force close :D

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