当前位置: 首页 > 工具软件 > oneDevice > 使用案例 >

解决ADB错误“more than one device and emulator”的方法

糜淇
2023-12-01

1.什么情况下出现该问题?

输入adb命令操作设备,但多个设备连接了电脑,导致adb无法识别操作具体哪台设备

2.解决办法

如果输入adb devices,显示

List of devices attached

DG4064b7ac4408 device

emulator-5556 device

1.若想选择第一台设备操作,执行命令adb -s DG4064b7ac4408 shell,进入该设备操作

2. 如不想进入设备shell模式,则执行 adb -s DG4064b7ac4408  指令(如 adb -s DG4064b7ac4408 shell input keyevent 3)

3.如果只有一个模拟器和一个手机连着电脑; 可以用adb -e 来指明是操作模拟器(Emulator); 可以用adb -d 来指明是操作设备(Device)

 类似资料: