消除ADB错误“more than one device and emulator”的方法

转载自 杭州山不高的原创

当我连着手机充电的时候,启动模拟器调试,执行ADB指令时,报错。

C:\Users\gaojs>adb shell

error: more than one device and emulator

C:\Users\gaojs>adb install e:\good.apk

error: more than one device and emulator

碰到这种情况,首先要查一下,是不是真的有多个设备或模拟器。

C:\Users\gaojs>adb devices

List of devices attached

emulator-5554   device

4dfadcb86b00cf05        device

发现还真是多个设备,那就需要为ADB命令指定设备的序列号了。

C:\Users\gaojs>adb -s emulator-5554 shell

也就是如上所示,给命令加上-s的参数就可以了!

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容