在用adb shell 的时候,提示more than one device and emulator,怎么解决办呢?
1、获取模拟器/设备列表
adb devices
2、指定device来执行adb shell
adb -s devicename shell
例如:adb -semulator-5554 shell
在多device的时候,执行adb命令一般都需要用参数-s指定device。例如卸载emulator-5554上的包com.soft.camera
adb -semulator-5554 uninstall com.soft.camera
本文介绍了当使用ADB命令遇到多设备连接时如何指定特定设备执行命令的方法。通过列出所有连接的设备并指定设备名称,可以有效地避免命令冲突,实现对特定设备的操作。
1160

被折叠的 条评论
为什么被折叠?



