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

你说的曾经没有我的故事 提交于 2019-12-09 09:03:38

问题


Operating System : CentOS Linux 7
Android Studios version : 2.3.3

Result of the command: lsmod | grep kvm

My computer supports virtualization but when i try to start the emulator I get this 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

回答1:


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

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




回答2:


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

sudo chmod 777 /dev/kvm



回答3:


In my case the error was because the user has not enough permission to /dev/kvm. So the solution is giving permission,i.e.,

chmod 777 /dev/kvm


来源:https://stackoverflow.com/questions/44635879/kvm-is-required-to-run-this-avd-unknown-error-please-file-a-bug-against-androi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!