$ 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
选项指定设备,例如:
adb -s 7f1c864e shell
另见 http://developer.android.com/tools/help/adb.html#directingcommands
关于android - 连接多个设备时如何使用 ADB Shell? "error: more than one device and emulator"失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14654718/