在 android studio 中的多个模拟器上部署 [英] Deploy on several emulators in android studio

查看:38
本文介绍了在 android studio 中的多个模拟器上部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 android studio 中的多个模拟器设备上进行部署.只是为了在不同的设备上测试它.可能吗?

I want to deploy on several emulator devices in android studio. Just for testing it on different devices. Is it possible?

推荐答案

是的,这是可能的.

  1. 启动几个模拟器.
  2. 创建显示选择器对话框(目标设备)的运行配置.
  3. 运行配置.
  4. 当 Android Studio 询问时选择所有正在运行的模拟器.

这仅适用于非调试 Android 应用程序 配置,不适用于 Android 测试 或调试配置.

This will work only for non debug Android Application configuration, it will not work for Android Tests or debug configurations.

您还可以运行 Gradle 命令 connectedCheck 在 Android Studio 之外的所有设备上运行测试.

You can also run Gradle command connectedCheck to run tests on all devices outside of Android Studio.

这篇关于在 android studio 中的多个模拟器上部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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