Logcat not displaying my log calls

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

    Best solution for me was restart adb server (while I have Enabled ADB integration in Android studio - Tools - Android - checked). To do this quickly I created adbr.bat file inside android-sdk\platform-tools directory (where is adb.exe located) with this inside:

    adb kill-server
    adb start-server
    

    Because I have this folder in PATH system variable, always when I need restart adb from Android studio, I can write only into terminal adbr and it is done.

    Another option to do this is through Android Device Monitor in Devices tab - Menu after click on small arrow right - Reset adb.

提交回复
热议问题