如何logcat 多个设备?
How to logcat multiple devices?
我有 2 个 genymotion 模拟器。如果我通过切换设备在 adnroid studio 中观察 logcat,它工作正常但只有几分钟,然后其中一个设备日志变为空(logcat 重启在这种情况下没有帮助,只能重启 android sudio 米)
我试图打开 2 个终端 windows 并从那里获取 logcat (as sugested in this topic),但是:
adb devices
returns
adb devices
List of devices attached
192.168.57.102:5555 device
192.168.57.101:5555 device
然后我得到了
adb -s 192.168.57.101.5555 logcat
- waiting for device -
或
adb -s device_ip:192.168.57.102.5555 logcat
- waiting for device -
error: unknown host service
- waiting for device -
error: unknown host service
adb -s 192.168.57.101.5555 logcat
应该是
adb -s 192.168.57.101:5555 logcat
请注意端口与地址的区别。
我有 2 个 genymotion 模拟器。如果我通过切换设备在 adnroid studio 中观察 logcat,它工作正常但只有几分钟,然后其中一个设备日志变为空(logcat 重启在这种情况下没有帮助,只能重启 android sudio 米)
我试图打开 2 个终端 windows 并从那里获取 logcat (as sugested in this topic),但是:
adb devices
returns
adb devices
List of devices attached
192.168.57.102:5555 device
192.168.57.101:5555 device
然后我得到了
adb -s 192.168.57.101.5555 logcat
- waiting for device -
或
adb -s device_ip:192.168.57.102.5555 logcat
- waiting for device -
error: unknown host service
- waiting for device -
error: unknown host service
adb -s 192.168.57.101.5555 logcat
应该是
adb -s 192.168.57.101:5555 logcat
请注意端口与地址的区别。