Android Studio: /dev/kvm device permission denied

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

    I am using ubuntu 18.04. I was facing the same problem. I run this piece of command in terminal and problem is resolved.

    sudo chown $USER /dev/kvm
    

    the above command is for all the user present in your system.

    If you want to give access to only a specific user then run this command

    sudo chown UserNameHere /dev/kvm
    

提交回复
热议问题