如果连接了多个模拟器/设备,是否可以安装 APK 文件 [英] Is it possible to install APK file if more than one emulators/devices are connected

查看:30
本文介绍了如果连接了多个模拟器/设备,是否可以安装 APK 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何通过命令提示符将 apk 文件安装到模拟器中.但我想知道是否可以通过提供任何特定名称将相同的 apk 文件安装到多个模拟器中?实际上我必须在许多设备中测试一个 apk 文件.为此,我已经启动了许多设备.我知道如何安装它.如果所有设备都打开,那么它将无法安装.那么是否有任何替代方法可以通过提供任何特定的设备模拟器 ID 或任何名称来安装该 apk 文件???如果有任何想法,请帮助我...谢谢.

I know how to install the apk file in to the emulator by command prompt and all that. But i want to know is it possible to install same apk file in to multiple emulator by giving any specific name ? Actually i have to test one apk file in to many device. and for that i have started many device. I know how to install it. if the all device are open then it will not get install. So is there any alternate to install that apk file by giving any specific device Emulator id or any name ??? Please help me if there is any idea for it. . . Thanks.

推荐答案

是的,您可以在特定设备上安装 apk.

Yes, you can install an apk on a particular device.

在命令中输入:

adb devices
// list of devices and its unique ID...

然后输入:

adb -s "<deviceIDfromlist>" install "<path-to-apk>"

这篇关于如果连接了多个模拟器/设备,是否可以安装 APK 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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