My AVD in android studio has a problem when i want to run it then i searched and i used this command sudo chmod 777 -R /dev/kvm and it works.
My problem is when i start my PC , i should type this for using emulator , it has a way for submitted it for ever.
My OS : "Ubuntu 18.04.5 LTS"
31 Answer
That is never going to work: /dev/ is rebuild every boot. Besides that chmod 777 is never the correct solution. The only time chmod 777 is a solution is when it is for a tmp situation where you also use the sticky bit.
The way to do this: please check the GROUP of /dev/kvm (with ls -l /dev/kvm) and add the user you want to use that device to that group.
The group is likely to be kvm so what you need to do is
sudo adduser $USER kvmAdjust it to the group /dev/kvm shows though. You need to logout before it is activated too.