输入adb shell 时 提示error: more than one device and emulator
来源:互联网 发布:乌克兰 知乎 编辑:程序博客网 时间:2024/06/05 05:13
1、获取模拟器/设备列表
adb devices
2、指定device来执行adb shell
adb devices
2、指定device来执行adb shell
adb -s devicename shell
例如:
adb -s emulator-5578 shell
在多device的时候,执行adb命令一般都需要用参数-s指定device,比如卸载、安装都需要先指定device
adb -s emulator-5578 uninstall com.xxx.xxx
碰到这种情况,首先要查一下,是不是真的有多个设备或模拟器。发现还真是多个设备,那就需要为ADB命令指定设备的序列号了。但是如果实际上你只有一个设备不知道为什么出现多个设备的情况下,这样每次输入指令钱都要先指定device感觉很麻烦。
输入以下指令,关闭adb服务:
adb kill-server
再进行输入adb devices的时候会重启adb服务,会看到仅有一个设备了
0 0
- 输入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
- 输入adb shell 时 提示error: more than one device and emulator
- 使用adb install 时 提示error: more than one device and emulator
- error: more than one device and emulator-----adb命令
- Adb error: more than one device/emulator
- ADB error: more than one device/emulator
- error: more than one device and emulator
- error: more than one device and emulator .
- error: more than one device and emulator
- Linux内核---6.make menuconfig 流程分析
- Android draw学习
- Android应用开发SharedPreferences存储数据的使用方法
- Codeforces Round #360 (Div. 2) B. Lovely Palindromes
- linux服务器使用SSH Secure Shell Client部署tomcat
- 输入adb shell 时 提示error: more than one device and emulator
- redis 配置文件详解
- Linux内核---7.Makefile学习笔记
- LeetCode 365 Water and Jug Problem
- netstat已经out,取代他的是ss
- Tomcat
- shell 脚本的基础
- 1016 ProblemP
- 使用DOM4J解析xml