Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android emulator 如何使用-s命令将apk安装到多个连接的设备?_Android Emulator - Fatal编程技术网

Android emulator 如何使用-s命令将apk安装到多个连接的设备?

Android emulator 如何使用-s命令将apk安装到多个连接的设备?,android-emulator,Android Emulator,我有两个设备插入我的开发机器 我正在执行由Android调试桥发出的特定命令 adb -s serial_number command 假设我这样做: C:\Users\kalpesh>adb devices List of devices attached 16261522500024 device 16261522500022 device 现在我试着这样做: C:\Users\kalpesh>adb -s 16261522500024 -s 1626152250002

我有两个设备插入我的开发机器

我正在执行由Android调试桥发出的特定命令

adb -s serial_number command 
假设我这样做:

C:\Users\kalpesh>adb devices
List of devices attached
16261522500024  device
16261522500022  device
现在我试着这样做:

C:\Users\kalpesh>adb -s 16261522500024 -s 16261522500022 install Chrome.apk
但它给出的是:

 adb help                     - show this help message
  adb version                  - show version num

scripting:
  adb wait-for[-<transport>]-<state>
                               - wait for device to be in the given state:
                                 device, recovery, sideload, or bootloader
                                 Transport is: usb, local or any [default=any]
  adb start-server             - ensure that there is a server running
  adb kill-server              - kill the server if it is running
  adb get-state                - prints: offline | bootloader | device
  adb get-serialno             - prints: <serial-number>
  adb get-devpath              - prints: <device-path>
  adb remount                  - remounts the /system, /vendor (if present) and 
adb帮助-显示此帮助消息
adb版本-显示版本号
脚本编写:
亚洲开发银行等待[-]-
-等待设备处于给定状态:
设备、恢复、侧加载或引导加载程序
传输方式为:usb、本地或任意[默认值=任意]
adb启动服务器-确保有一台服务器正在运行
adb kill server-如果服务器正在运行,则将其杀死
adb获取状态-打印:脱机|引导加载程序|设备
adb获取序列号-打印:
adb获取devpath-打印:
adb重新安装-重新安装/系统、/供应商(如果存在)和
需要一些帮助命令吗