连接多个设备时如何使用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屋!
查看全文