如何在 Android Studio 中使用不同的模拟器

How to use a different emulator in Android Studio

我在 Android Studio 中构建 qemu 模拟器时遇到问题。还有其他一些 Android 模拟器。如何配置 Android Studio 以使用不同的模拟器?我使用 leapdroid 模拟器 http://www.leapdroid.com 来 运行 应用和游戏。

您尝试使用 Genymotion 了吗?这是我遇到过的最快的模拟器。
- 从他们的网站下载它以获得您所需的系统规格。
-您还需要一个帐户才能下载设备图像。
-完成所有这些后,当您只需 运行 模拟器时,该设备应该会出现在您的 ADB 选择设备中 window。
-您可能还想使用 Genymotion plugin for android studio 来轻松启动虚拟设备。

选项如下:

Genymotion: https://www.genymotion.com/
使用 Androi Studio 配置 here

Visual Studio Android 的模拟器 https://www.visualstudio.com/en-us/features/msft-android-emulator-vs.aspx
配置 Android Studio here

希望对你有所帮助

Leapdroid 与 Android adb 兼容,即使用以 5555 开头的相同端口号,因此实际上没有什么特别的,与您使用内置 Android 模拟器。如果你 运行 "adb devices",你会看到一个名为 "emulator-5554".

的设备

步骤如下:

  1. 启动 Leapdroid 虚拟机,其中包含 android 4.4.4 图像
  2. 启动Android Studio,然后单击Android 模拟器选项卡,名为"Emulator unknown 4.4.4" 的设备将出现在设备列表中,您可以select 它。
  3. 您应该能够看到 logcat,并调试您的 Android 应用等。

确保先关闭所有其他模拟器,以防发生冲突。

我还附上了两张截图以供说明: