您的位置:首页 > 运维架构 > Shell

Android adb shell 报错:more than one device and emulator

2016-02-20 19:17 1576 查看
在用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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: