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

2014-11-24 11:45:19 · 作者: · 浏览: 2

在用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