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

标签 android android-studio android-emulator emulation

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

最佳答案

Leapdroid 与 Android adb 兼容,即使用以 5555 开头的相同端口号,因此实际上没有什么特别要做的,与您使用内置 Android 模拟器所做的几乎相同。如果您运行“adb devices”,您将看到名为“emulator-5554”的设备。

步骤如下:

  1. 启动 Leapdroid 虚拟机,其中包含 android 4.4.4 图像
  2. 启动 Android Studio,然后点击 Android emulator 选项卡,名为“Emulator unknown 4.4.4”的设备将显示在设备列表中,您可以选择它。
  3. 您应该能够看到 logcat,并调试您的 Android 应用等。

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

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

Android Studio connecting to Leapdroid VM Leapdroid vm running

关于android - 如何在 Android Studio 中使用不同的模拟器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37796452/

相关文章:

android - Shake 事件在各种设备上的工作方式不同 Shake Event 自定义实现

android - 以编程方式删除 AppWidgets

android - Activity 中的 ViewModel 与静态变量

android - 无法使用 AndroidAnnotations 库在 AndroidStudio 中制作项目

java - findViewById 在静态函数中不起作用

android - 我必须运行 adb connect 192.168.56.101 :5555 in order for android emulator to show up in list

Android 传感器精度

android - 无法解析 : com. google.android.gms :play-services-measurement:9. 6.1

android - 将 Charles Proxy for Android 模拟器 Eclipse 与 Kindle Fire 结合使用

java - Android 开发- Intent