在VMware虚拟机上运行的Android Studio:未安装KVM [英] Android Studio running on VMware virtual machine: KVM is not installed

查看:547
本文介绍了在VMware虚拟机上运行的Android Studio:未安装KVM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Ubuntu VMWare虚拟机上运行Android Studio.问题是,当我尝试使用AVD模拟器运行应用程序时,在控制台中出现以下错误:

I'm running Android Studio on a Ubuntu VMWare virtual machine. The problem is that when I try to run an app with the AVD emulator I get the following errors in the console:

/home/verite/Android/Sdk/tools/emulator -avd Nexus_5_API_22_x86 -netspeed full -netdelay none
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure KVM is properly installed and usable.
CPU acceleration status: KVM is not installed on this machine (/dev/kvm is missing).

我已经尝试通过以下方法解决问题:

I've tried to solve the problem by doing this:

sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
sudo adduser `id -un` libvirtd
sudo adduser `id -un` kvm

并重新启动,但不起作用.当我发出命令时:

and restarting, but it doesn't work. When I issue the command:

sudo kvm-ok

我知道

INFO: Your CPU does not support KVM extensions
KVM acceleration can NOT be used

请问有人可以解决这个问题吗?

Could someone tell me how to fix the problem, please?

谢谢

推荐答案

使用模拟器"部分中发现的坏消息官方的Android开发者网站:

Bad news found in the Using the Emulator section of the official Android developer website:

不在VM内-无法在其中运行VM加速的模拟器 另一个虚拟机,例如VirtualBox或VMWare托管的虚拟机 机器.您必须直接在系统硬件上运行仿真器.

Not Inside a VM - You cannot run a VM-accelerated emulator inside another virtual machine, such as a VirtualBox or VMWare-hosted virtual machine. You must run the emulator directly on your system hardware.

因此,似乎最好的选择是寻找与Android Studio兼容的真实设备来运行应用程序.

So it seems my best alternative is look for a real device compatible with the Android Studio for running the apps.

这篇关于在VMware虚拟机上运行的Android Studio:未安装KVM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆