android - 连接多个设备时如何使用 ADB Shell? "error: more than one device and emulator"失败

标签 android shell cmd adb android-debug

$ adb --help

-s SERIAL  use device with given serial (overrides $ANDROID_SERIAL)

$ adb devices
List of devices attached 
emulator-5554   device
7f1c864e    device

$ adb shell -s 7f1c864e
error: more than one device and emulator

最佳答案

在命令前使用-s选项指定设备,例如:

adb -s 7f1c864e shell

另见 http://developer.android.com/tools/help/adb.html#directingcommands

关于android - 连接多个设备时如何使用 ADB Shell? "error: more than one device and emulator"失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14654718/

相关文章:

Android 开发者工具 16 和混淆器中的 -keepclasseswithmembers 问题

用于执行 hbase 命令的 Shell 脚本 - 删除所有 hbase 表

c - 使用 curses 中的 initscr() 时在错误的位置打印

java - 在linux中启动一个类似服务的jar文件

mysql - 使用CMD在Mysql中导入压缩文件

android - 如何通过焦点调整屏幕中两个 fragment 的大小?

javascript - 如何在适用于 Android 平台的 PhoneGap 应用程序中接收即时通知,告知您收件箱中有来自管理员的新消息

android - 将 FFMPEG AvFrame 数据从 C++ 传递到 JAVA

file - 选择多个文件, "send to"batch.cmd,让batch.cmd对选定的文件运行一个程序

java - 在命令提示符下运行 Windows 扫描程序以获取来自 Java 的文件