Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

KVM is required to run this AVD. Unknown Error! Please file a bug against Android Studio

Operating System : CentOS Linux 7
Android Studios version : 2.3.3

Result of the command: lsmod | grep kvm

lsmod | grep kvm

My computer supports virtualization but when i try to start the emulator I get this error:

Android Studios Error

2017-06-19 19:11:58,120 [  98282]   INFO - figurations.GeneralCommandLine - Cannot run program "/home/folder/Android/Sdk/emulator/emulator-check": error=13, Permission denied 
java.io.IOException: Cannot run program "/home/folder/Android/Sdk/emulator/emulator-check": error=13, Permission denied
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:368)
    ... more
2017-06-19 19:15:28,593 [ 308755]   INFO - figurations.GeneralCommandLine - Cannot run program "/home/folder/Android/Sdk/emulator/emulator": error=13, Permission denied 
java.io.IOException: Cannot run program "/home/folder/Android/Sdk/emulator/emulator": error=13, Permission denied
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.io.IOException: error=13, Permission denied
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    ... more
like image 722
Minathe Avatar asked Jun 19 '17 16:06

Minathe


2 Answers

I also had this problem, and was able to fix it by using:

sudo chmod 777 /dev/kvm
like image 70
LoPiS oToKa Avatar answered Nov 01 '22 21:11

LoPiS oToKa


Changed permissions in the /home/folder/Android/Sdk/emulator/ folder

chmod 777 -R /home/folder/Android/Sdk/emulator/

like image 20
Minathe Avatar answered Nov 01 '22 21:11

Minathe