输入adb shell 时 提示error: more than one device and emulator
2023-09-11 14:18:38 时间
第一种情况:确实用多个设备或者模拟器
解决办法:(指定连接某一个设备或者模拟器)
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
第二种情况下:确实有一个设备或者模拟器(之所以显示有多个是因为此设备用过两次使用命令 adb devices 会看到这个设备有两种状:offline 和 device) 解决办法: 一般办法:在命令窗口输入adb start-server 重新启动adb.exe服务 如果上述方法不可以,终极方法:打开任务栏,选择“进程”选项卡,找到adb.exe进程,结束之,重新启动就完事OK啦(或者在命令窗口输入命令adb kill-server )
相关文章
- APP 测试中十大常用 adb 命令
- ADB 命令结合 monkey 的简单使用,超详细
- 移动端测试必备技能: adb命令和抓包
- 解决genemotion模拟器冲突导致的Android Studio无法启动ADB的问题
- 解决Eclipse下不自动拷贝apk到模拟器问题( The connection to adb is down, and a severe error has occured)
- ubuntu 16.04下安装ADB
- Monkey稳定性测试实战之ADB命令(一)
- [10] ADB 修改设置
- Eclipse中运行程序,提示ADB server didn't ACK failed to start daemon
- missing port in specification: tcp:192.168.1.20[ADB:规范中缺少端口]
- Android adb shell学习心得(四)
- Android adb 我的常用调试命令记录(持续更新中...)
- Eclipse中运行程序,提示ADB server didn't ACK failed to start daemon