I'm using Ubuntu 14.04. I recently installed Android Studio, but whenever I try to run a Hello World app, I get this error:
/home/praveen/Android/Sdk/tools/emulator -avd Nexus_6_API_21 -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).
Use the below command to check whether the KVM is installed in the machine or not,
Output:
Output like the below means,
In this scenario need to install KVM using the below command,
Hope this helps.
Either your CPU does not support virtualization, or it is disabled in the bios. Go into your bios and see if you can find a setting to enable it.
Affter bios setting, I used the following command
Now is ok
Worked on Ubuntu 15.04, Intel's CPU
sudo apt-get install qemu-kvm
sudo kvm-ok
I had tried the command,
but unfortunately it didn't work. Then I changed owner (
rohanverma
is user in my case) by using,which worked for me.
I saw the same error. But I'm running Ubuntu on the VMware. Ubuntu is installed on the VMware. So the steps to resolve the problem is different from pure ubuntu machine. The complains went away with the following steps:
sudo apt install cpu-checker
sudo kvm-ok
Close any other hypervisors before starting Android Studio. I received the same error message when I tried to run an Android Virtual Device and had a Virtual Box VM running at the same time.