连接多个设备时如何使用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


暮色呼如
浏览 1399回答 3
3回答

慕容森

另一个选择是将环境变量ANDROID_SERIAL设置为相关的序列,这里假设您使用的是Windows:set ANDROID_SERIAL="7f1c864e"echo %ANDROID_SERIAL%"7f1c864e"然后,您可以使用adb.exe shell而没有任何问题。
打开App,查看更多内容
随时随地看视频慕课网APP