Android Studio: /dev/kvm device permission denied

后端 未结 27 3217
鱼传尺愫
鱼传尺愫 2020-12-02 03:12

When I try to run my Android app on an emulator I get this error:

/dev/kvm permission denied.

I checked the permissions and ad

27条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 03:46

    Here is a simple solution

    open the terminal and run the following commands

    sudo groupadd -r kvm
    

    sudo gedit /lib/udev/rules.d/60-qemu-system-common.rules
    

    Add the following line to the opened file and save it

    KERNEL=="kvm", GROUP="kvm", MODE="0660"

    Finally run:

    sudo usermod -a -G kvm 
    

    Reboot your PC and Done!

提交回复
热议问题