第一种情况:确实用多个设备或者模拟器
1、获取模拟器/设备列表
|
adb devices |
2、指定device来执行adb shell
|
例如:
adb -s emulator-5554 shell |
在多device的时候,执行adb命令一般都需要用参数-s指定device。例如卸载emulator-5554上的包com.soft.camera adb -s emulator-5554 uninstall com.soft.camera
第二种情况下:确实有一个设备或者模拟器(之所以显示有多个是因为此设备用过两次 使用命令 adb devices 会看到这个设备有两种状:offline 和 device)
转载请注明:爱学习爱分享 » 输入adb shell 时 提示error: more than one device and emulator