【发布时间】:2022-12-06 03:24:10
【问题描述】:
我在为 android 开发时试图通过 logcat 获取调试信息。 Logcat 不显示任何信息,仅显示错误
error: more than one device/emulator
当我运行命令
adb devices
我明白了
List of devices attached
R3CT20DP74P device
emulator-5562 offline
我猜是模拟器阻止了我的手机与 adb 连接?我也猜想这就是导致 catlog 从我的手机登录的原因。我是否以某种方式删除模拟器 -5562?我试过 adb kill-server 但模拟器重新出现。
我也试过
adb -s emulator-5562 emu kill
回报:
error: could not connect to TCP port 5562: cannot connect to 127.0.0.1:5562: No connection could be made because the target machine actively refused it. (10061)
我试过了: adb.exe -s R3CT20DP74P 转发 tcp:7201 tcp:7201
返回
7201
但什么都不做。模拟器还在。
【问题讨论】: