需要KVM才能运行此AVD。未知错误!请针对Android Studio

时间:2017-06-19 16:43:57

标签: android android-studio kvm

操作系统:CentOS Linux 7
Android Studios版本:2.3.3

命令结果:lsmod | grep kvm

lsmod | grep kvm

我的电脑支持虚拟化但是当我尝试启动模拟器时出现此错误:

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

4 个答案:

答案 0 :(得分:13)

更改了/ home / folder / Android / Sdk / emulator /文件夹中的权限

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

答案 1 :(得分:0)

我遇到了这个问题,并且能够使用sudo chmod 777 / dev / kvm来解决它

答案 2 :(得分:0)

您需要成为kvm组的一部分

尝试一下:

sudo adduser $USER kvm

然后重新启动android studio或注销/重新登录用户

答案 3 :(得分:-1)

在某些情况下,错误可能是由于用户对/ dev / kvm的权限不足 所以解决方案是给予许可。即

chmod 777 / dev / kvm