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

前端 未结 5 1780
深忆病人
深忆病人 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条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-02 14:52

    Simply try this. this was work for me

    $ sudo chown username -R /dev/kvm
    

    sometimes you need to run this code also

    $ cd Android/Sdk/emulator/lib64/libstdc++
    $ mv libstdc++.so.6 libstdc++.so.6.bak
    $ ln -s /usr/lib64/libstdc++.so.6
    

提交回复
热议问题