如何通过adb在连接的设备之一中安装apk? [英] How to install an apk in one of the connected devices through adb?

查看:73
本文介绍了如何通过adb在连接的设备之一中安装apk?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有多个连接到计算机的设备/仿真器,并且我想在其中一台设备上安装apk或运行其他adb命令.

I have multiple devices/emulators connected to my computer and I want to install an apk or run other adb commands in one of the devices.

我该怎么做?

推荐答案

如果要安装apk

  1. 要在设备上安装apk的多个仿真器和一台已连接的设备:

  1. Multiple Emulator and one device attached you want to install apk on device :

adb -d安装< apk的路径>

已连接多个仿真器和多个设备,并且要在设备上安装:

Multiple Emulator and Multiple device attached And you want to install on device :

A.获取设备名称和序列号.

A. Get devices name and serial numbver.

adb devices

B.现在,在给定的设备ID上安装apk.

B. Now install apk on given device id.

adb -s <设备的序列号> 安装< apk的路径>

adb -s <serial number of device> install <path of apk>

  1. 多个仿真器并且您想在选定的仿真器上安装:

  1. Multiple Emulator And you want to install on selected emulater:

adb -e安装< apk的路径>

有关更多详细信息,请点击以下链接: http://developer.android.com/tools/help/adb.html

For more detail please follow below link: http://developer.android.com/tools/help/adb.html

这篇关于如何通过adb在连接的设备之一中安装apk?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆