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

查看:50
本文介绍了在 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:

不在虚拟机内部 - 您不能在虚拟机内部运行虚拟机加速模拟器另一个虚拟机,例如 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天全站免登陆