作者:zhengfke | 来源:互联网 | 2023-01-31 19:19
操作系统:CentOS Linux 7
Android Studios版本:2.3.3
命令结果: lsmod | grep kvm
我的电脑支持虚拟化,但当我尝试启动模拟器时,我收到此错误:
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
Minathe..
20
更改了/ home/folder/Android/Sdk/emulator /文件夹中的权限
chmod 777 -R /home/folder/Android/Sdk/emulator/
1> Minathe..:
更改了/ home/folder/Android/Sdk/emulator /文件夹中的权限
chmod 777 -R /home/folder/Android/Sdk/emulator/
2> 小智..:
我也遇到了这个问题,并且可以通过使用以下方法修复它:
sudo chmod 777 /dev/kvm