如果连接了多个模拟器/设备,是否可以安装 APK 文件

Is it possible to install APK file if more than one emulators/devices are connected(如果连接了多个模拟器/设备,是否可以安装 APK 文件)
本文介绍了如果连接了多个模拟器/设备,是否可以安装 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 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

How To Create a Rotating Wheel Control?(如何创建转轮控件?)
How to avoid restarting activity when orientation changes on Android(如何在 Android 上的方向更改时避免重新启动活动)
Screen orientation lock(屏幕方向锁定)
Strange behavior with android orientation sensor(android方向传感器的奇怪行为)
Android: Rotate image in imageview by an angle(Android:将imageview中的图像旋转一个角度)
Activity restart on rotation Android(旋转Android上的活动重启)