When I updated my Android Studio to 3.2.2 and when tried to run emulator got the problem -
This command will give output like -
kvm:x:127:
So, there is nothing after second colon (:), there should be a username after second colon.
So, to add user (your system username) to kvm group, type
sudo adduser <your_system_user> kvm
This command will add you (your system user) to the kvm group.
Once again run the command -
grep kvm /etc/group
Output may be like -
kvm:x:127:your_system_username
Now all done. Re-login/restart is required to apply the effects.
See all steps screen shot bellow -
After searching on internet, I found the successful solution here .
Solution is to need to install qemu-kvm. To do this run command type -
sudo apt-get install qemu-kvm
After successful installation of qemu-kvm, check the ownership of /dev/kvm, to check this, type-
ls -al /dev/kvm
After this command you can see that kvm is under root ownership.
Now type following command to check the which user is under kvm group -
grep kvm /etc/group
This command will give output like -
kvm:x:127:
So, there is nothing after second colon (:), there should be a username after second colon.
So, to add user (your system username) to kvm group, type
sudo adduser <your_system_user> kvm
This command will add you (your system user) to the kvm group.
Once again run the command -
grep kvm /etc/group
Output may be like -
kvm:x:127:your_system_username
Now all done. Re-login/restart is required to apply the effects.
See all steps screen shot bellow -
No comments:
Post a Comment