Android Logcat is empty when debug with device in android studio

后端 未结 11 1430
轻奢々
轻奢々 2020-12-08 14:21

When I try to debug using android device in android studio Logcat shows nothing. But when I use emulator LogCat shows all the messages. How should view the Logcat messages w

11条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-08 14:40

    The problem seems to have different causes.

    For me, the issue was that I had two emulators with the same name (I created it, deleted it, and then created it again with the same name). There were two emulator entries in the logcat dropdown and it was connected to the wrong one. All I had to do was switch to the other one. I prevented the problem permanently by renaming the emulator.

提交回复
热议问题