Android Studio: /dev/kvm device permission denied

后端 未结 27 3221
鱼传尺愫
鱼传尺愫 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:45

    In order to make a virtual device in Linux - I have to follow this three command and it helps me to avoid trouble for building avd devices - the process are -

    sudo apt install qemu-kvm
    sudo adduser $USER kvm
    sudo chown $USER /dev/kvm 
    

    so, now you are good to go, restart android studio and start building application with emulator.

提交回复
热议问题