就在Android Studio中的几个模拟器部署

就在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. 选择所有正在运行的仿真器时的Andr​​oid工作室询问。

这将只对非调试 Android应用程序配置,它不会为工作Android的测试或调试配置。

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

您也可以运行命令摇篮 connectedCheck 到Android Studio之外运行在所有设备上测试。

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