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

2014-11-24 11:45:19 来源: 作者: 浏览: 1

在用adb shell 的时候,提示 more than one device and emulator,怎么解决办呢?


1、获取模拟器/设备列表


adb devices


2、指定device来执行adb shell


adb -s devicename shell


例如:adb -s emulator-5554 shell


在多device的时候,执行adb命令一般都需要用参数-s指定device。例如卸载emulator-5554上的包com.soft.camera


adb -s emulator-5554 uninstall com.soft.camera


-->

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: