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

查看:75
本文介绍了如果连接了多个仿真器/设备,是否可以安装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天全站免登陆