android - Mac OS下使用Docker运行android模拟器x86

标签 android emulation

我在 my 上安装了 docker.app,我想在 docker 镜像中启动 android x86 模拟器。
不幸的是,我在尝试启动模拟器时遇到了以下错误。 (模拟器@nexus7)

ERROR: x86 emulation currently requires hardware acceleration!
Please ensure KVM is properly installed and usable.
CPU acceleration status: KVM requires a CPU that supports vmx or svm

鉴于我的 Mac OS 实际上似乎支持 vmx,我如何启动 android x86 模拟器?

最佳答案

我设法做到这一点(目前)的方式有些复杂:我在 Parallels 中设置了一个 ubuntu 虚拟机并启用了“嵌套虚拟化”

enter image description here

通过该设置,我已经设法在 Mac 上通过 docker 启动并运行我们的 Android UI 测试。

我还没有想出如何在没有额外的 Parallels VM 层的情况下做到这一点。

关于android - Mac OS下使用Docker运行android模拟器x86,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48701450/

相关文章:

java - WakefulBrodcastReceiver/Alert 不响(Wakelock?进程被杀死?)

android - 同步 ListFragment 和 SupportMapFragment 选择

java - 当 ActionBarLayout 最初折叠时,CollapsingToolbarLayout 标题消失

android - 在 Android 中模拟广播

Java登录方法: runs if details are correct but NullPointerException if incorrect

java - Android Studio 0.3.+ Gradle 问题

emulation - 创建一个简单的老式控制台模拟器

android - 如何更改 Xamarin Android Player 屏幕大小

Android模拟器出现蓝屏死机

android - 在 Android 上创建 emulator-x86 镜像