Logcat not displaying my log calls

前端 未结 30 1902
悲&欢浪女
悲&欢浪女 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: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());
    }
    

提交回复
热议问题