Android adb shell 报错:more than one device and emulator
来源:互联网 发布:数码视讯软件开发 编辑:程序博客网 时间:2024/06/01 23:04
转载请标明出处:http://blog.csdn.net/xx326664162/article/details/51352629 文章出自:薛瑄的博客
你也可以查看我的其他同类文章,也会让你有一定的收货!
获取模拟器/设备列表
1、首先要查一下,当前有哪些设备正在通过adb连接电脑。
adb devices
2、指定device来执行adb shell
adb -s 你的设备名 shell
例如:
C:\Documents and Settings\Administrator>adb devices List of devices attached emulator-5554 device ACE87B65E765 device
C:\Documents and Settings\Administrator>adb -s emulator-5554 shell #
在多device的时候,执行adb命令一般都需要用参数-s指定device。例如卸载emulator-5554上的包com.soft.camera
adb -s emulator-5554 uninstall com.soft.camera
如果只有一个模拟器和一个手机连着电脑;
可以用adb -e 来指明是操作模拟器(Emulator);可以用adb -d 来指明是操作设备(Device)!
关闭ADB服务
如果实际上只有一个设备或模拟器,并且查到有offline的状态;
那就说明是ADB本身的BUG所导致的,就需要用如下的方法处理下了:
C:\Users\gaojs>adb kill-serverC:\Users\gaojs>taskkill /f /im adb.exe
如果第一条没有用,才考虑用第二条命令再试试看的!
第一条命令是杀ADB的服务,第二条命令是杀ADB的进程!
http://www.oschina.net/question/163910_27505
http://blog.csdn.net/gaojinshan/article/details/9455193
0 0
- Android adb shell 报错:more than one device and emulator
- Android adb shell 报错:more than one device and emulator
- Android adb shell 报错:more than one device and emulator
- Android adb shell 报错:more than one device and emulator
- android adb 报错:more than one device or emulator
- error: more than one device and emulator-----adb命令
- adb "more than one device and emulator" 解决方法
- adb查看内存使用情况报error: more than one device and emulator
- 输入adb shell 时 提示error: more than one device and emulator
- 输入adb shell 时 提示error: more than one device and emulator
- 输入adb shell 时 提示error: more than one device and emulator
- 输入adb shell 时 提示error: more than one device and emulator
- 输入adb shell 时 提示error: more than one device and emulator
- 输入adb shell 时 提示error: more than one device and emulator
- 输入adb shell 时 提示error: more than one device and emulator
- 输入adb shell 时 提示error: more than one device and emulator
- 输入adb shell 时 提示error: more than one device and emulator
- 输入adb shell 时 提示error: more than one device and emulator
- 有关epoll与select机制的剖析
- 2.2.第五个实验--使用数组实现从0到f的显示
- 录音
- NSURLSession的GET和POST请求的封装
- mysql表的垂直拆分和水平拆分
- Android adb shell 报错:more than one device and emulator
- KiFastCallEntry() 机制分析
- 在Eclipse上通过Cygwin编译C++
- Oracle - 常用函数
- GCD-信号量(dispatch_semaphore_t)
- 数据库理论基础
- gradle入门
- 什么是极端编程
- First Blood