Android Studio 2.3 using emulator from console, “/dev/kvm device: permission denied” for root user

喜夏-厌秋 提交于 2019-12-02 23:43:34

Simply try this. this was work for me

$ sudo chown username -R /dev/kvm

sometimes you need to run this code also

$ cd Android/Sdk/emulator/lib64/libstdc++
$ mv libstdc++.so.6 libstdc++.so.6.bak
$ ln -s /usr/lib64/libstdc++.so.6

Try these steps:

Install qemu-kvm like following

sudo apt install qemu-kvm

Add user to kvm group using the following command:

sudo adduser <username> kvm

If you are getting permission denied, try following command

sudo chown <username> /dev/kvm

It worked for me in Ubuntu 18.04

I solved the problem running

sudo apt install qemu-kvm
sudo chown username -R /dev/kvm

Assuming that you want to apply this change of ownership using the current OS user, use the following:

sudo chown whoami -R /dev/kvm

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