Android Studio “/dev/kvm device: permission denied” 解决办法

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 16:29   1698   0

在创建虚拟机的时候出现 /dev/kvm 的权限错误

或者以前可以用,但启动模拟器的时候提示错误

emulator: ERROR: x86_64 emulation currently requires hardware acceleration!
Please ensure KVM is properly installed and usable.
CPU acceleration status: This user doesn't have permissions to use KVM (/dev/kvm).
The KVM line in /etc/group is: [LINE_NOT_FOUND]

If the current user has KVM permissions,
the KVM line in /etc/group should end with ":" followed by your username.

If we see LINE_NOT_FOUND, the kv
More info on configuring VM acceleration on Linux:
https://developer.android.com/studio/run/emulator-acceleration#vm-linux
General information on acceleration: https://developer.android.com/studio/run/emulator-acceleration.

解决办法:

sudo chown 你的用户名 -R /dev/kvm

这样,就可以正常启动了

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP