I'm completely new to android development. After installing android studio with an empty project and adding a pixel device from AVD. On running it shows me the error
07/15 09:33:42: Launching 'app' on Pixel 3a API 28.
Error while waiting for device: Could not start AVD
I opened AVD manager where i can see
/dev/kvm device: permission denied
In troubleshooting options i can see
Grant current user access to /dev/kvm
I've already tried many tricks and i'm the member of kvm after running following commands(found in answers on stack) in terminal i got the following output:
$ ls -al /dev/kvm:
crw-rw---- 1 root root 10, 232 Jul 15 09:19 /dev/kvm
$ grep kvm /etc/group:
kvm:x:1001:
sudo chown $devendra /dev/kvm: after entering password:
chown: missing operand after ‘/dev/kvm’
Try 'chown --help' for more information.
But after running the command :' $ sudo chown devendra /dev/kvm ' program runs but only for once. On re-run it again gives the same error:
07/15 09:33:42: Launching 'app' on Pixel 3a API 28.
Error while waiting for device: Could not start AVD
For every run of program i have to run the command ' $ sudo chown devendra /dev/kvm ' Why?
Now i don't understand where i'm wrong or what i'm missing. Please guide me.