小编典典

连接多个设备时如何使用 ADB Shell?因“错误:多个设备和模拟器”而失败

all

$ 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

阅读 145

收藏
2022-03-04

共1个答案

小编典典

使用-s命令前的选项指定设备,例如:

adb -s 7f1c864e shell

另请参阅http://developer.android.com/tools/help/adb.html#directingcommands

2022-03-04