Android Studio 2.3 using emulator from console, “/dev/kvm device: permission denied” for root user

前端 未结 5 1779
深忆病人
深忆病人 2021-02-02 13:50

I\'m trying to start a virtual android device which I created with the avdmanager of Android Studio 2.3 (via command line)

all commands are performed as

5条回答
  •  闹比i
    闹比i (楼主)
    2021-02-02 14:34

    Try these steps:

    Install qemu-kvm like following

    sudo apt install qemu-kvm
    

    Add user to kvm group using the following command:

    sudo adduser  kvm
    

    If you are getting permission denied, try following command

    sudo chown  /dev/kvm
    

    It worked for me in Ubuntu 18.04

提交回复
热议问题