无法 运行 在托管的虚拟机 Ubuntu 上使用 Android Studio 的 Hello World 程序

Can Not Run Hello World Program using Android Studio on Virtual Machine Hosted Ubuntu

我是 Android 世界的新手。目前我已经在 Window7 上托管的 Oracle VM VirtualBox Managerr 上安装了 Ubuntu 15.10。我能够成功安装 Android Studio。但是 运行,我收到以下错误。

有人可以建议我在当前环境中 run/debug 该应用程序的方法。我在这里遗漏了一些明显的东西吗?如果我需要任何进一步的信息,请告诉我。

您的 CPU 不支持虚拟化,或者它在 bios 中被禁用。进入您的 bios,看看是否可以找到启用它的设置。

缺少 KVM,意味着,您应该阅读本教程:

http://blog.whitehorses.nl/2015/03/07/enabling-hardware-acceleration-for-android-sdk-emulator-on-linux/

“INFO: KVM is disabled by your BIOS HINT: Enter your BIOS setup and enable Virtualization Technology (VT), and then hard poweroff/poweron your system KVM acceleration can NOT be used”

当然,下一步是安装 KVM 和其他一些所需的软件包。为此,请键入

sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils

将您的用户添加到一些组中,将 <user> 替换为您自己的用户名:

sudo adduser <user> libvirtd
sudo adduser <user> kvm

检查是否一切正常。

请记住,HAXM 与 linux 不兼容。

根据: https://askubuntu.com/questions/600727/alternate-software-for-ubuntu

我花了几个小时试图在 mac 上解决这个问题。原来你需要enable/allow HAXM in System Perferances (Security/Privacy in the General Tab)