连接多个设备时如何使用ADB Shell?失败并显示“错误:多个设备和模拟器”。 [英] How to use ADB Shell when Multiple Devices are connected? Fails with "error: more than one device and emulator"
本文介绍了连接多个设备时如何使用ADB Shell?失败并显示“错误:多个设备和模拟器”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
$ adb --help
...
-s SERIAL use device with given serial (overrides $ANDROID_SERIAL)
...
$ adb devices
List of devices attached
emulator-5554 device
7f1c864e device
...
$ adb shell -s 7f1c864e
error: more than one device and emulator
?
推荐答案
在命令之前,使用 -s
选项,例如:
Use the -s
option BEFORE the command to specify the device, for example:
adb -s 7f1c864e shell
另请参见 http:// developer .android.com / tools / help / adb.html#directingcommands
这篇关于连接多个设备时如何使用ADB Shell?失败并显示“错误:多个设备和模拟器”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文