Ubuntu 环境下使用Android Studio 的模拟器出现以下错误
参考了https://askubuntu.com/questions/1050621/kvm-is-required-to-run-this-avd中的解决方法,然后重启电脑,就正常运行了
Starting with Ubuntu 18.04 and Linux Mint Tara you need to install qemu-kvm
sudo apt install qemu-kvm
Check the ownership of /dev/kvm
ls -al /dev/kvm
Check which users are in the kvm group
grep kvm /etc/group
Output from the above command
kvm:x:some_number:
If there is nothing rightwards of the final :
, there are no users in the kvm group.
To add the user your_name to the kvm group
sudo adduser your_name kvm
which adds the user to the group, and check once again with grep kvm /etc/group
.
A restart may be required for the permissions to take effect.