continuous errors without solutions keep popping up on android studio
Enable VT-x in your BIOS security settings, ensure that your Linux distro has working KVM module.
egrep -c '(vmx|svm)' /proc/cpuinfo
4
sudo kvm-ok
[sudo] password for programmer:
INFO: /dev/kvm does not exist
HINT: sudo modprobe kvm_amd
INFO: Your CPU supports KVM extensions
KVM acceleration can be used
https://software.intel.com/en-us/blogs/2012/03/12/how-to-start-intel-hardware-assisted-virtualization-hypervisor-on-linux-to-speed-up-intel-android-x86-emulator
VM is required to run this AVD.
/dev/kvm device: permission denied.
Grant current user access to /dev/kvm
down vote
I had this mistake with Android Studio 3.0.1 on Ubuntu 18.04 when I run emulator. You can try this answer. To add the user username to the kvm group, you could use:
sudo apt install qemu-kvm
sudo adduser username kvm
Enable VT-x in your BIOS security settings, ensure that your Linux distro has working KVM module.
egrep -c '(vmx|svm)' /proc/cpuinfo
4
sudo kvm-ok
[sudo] password for programmer:
INFO: /dev/kvm does not exist
HINT: sudo modprobe kvm_amd
INFO: Your CPU supports KVM extensions
KVM acceleration can be used
sudo kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
https://software.intel.com/en-us/blogs/2012/03/12/how-to-start-intel-hardware-assisted-virtualization-hypervisor-on-linux-to-speed-up-intel-android-x86-emulator
VM is required to run this AVD.
/dev/kvm device: permission denied.
Grant current user access to /dev/kvm
down vote
I had this mistake with Android Studio 3.0.1 on Ubuntu 18.04 when I run emulator. You can try this answer. To add the user username to the kvm group, you could use:
sudo apt install qemu-kvm
sudo adduser username kvm
https://askubuntu.com/questions/985142/ubuntu-14-android-studio-3-xrdp-dev-kvm-permission-denied
after enabling virtulization in the bios another list of shitty errors
11:57 PM Emulator: libGL error: unable to load driver: r600_dri.so
11:57 PM Emulator: libGL error: driver pointer missing
11:57 PM Emulator: libGL error: failed to load driver: r600
11:57 PM Emulator: libGL error: unable to load driver: swrast_dri.so
11:57 PM Emulator: libGL error: failed to load driver: swrast
11:57 PM Emulator: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
$ cd Android/Sdk/emulator/lib64/libstdc++
$ mv libstdc++.so.6 libstdc++.so.6.bak
$ ln -s /usr/lib64/libstdc++.so.6
https://stackoverflow.com/questions/35911302/cannot-launch-emulator-on-linux-ubuntu-15-10
success!!
after enabling virtulization in the bios another list of shitty errors
11:57 PM Emulator: libGL error: unable to load driver: r600_dri.so
11:57 PM Emulator: libGL error: driver pointer missing
11:57 PM Emulator: libGL error: failed to load driver: r600
11:57 PM Emulator: libGL error: unable to load driver: swrast_dri.so
11:57 PM Emulator: libGL error: failed to load driver: swrast
11:57 PM Emulator: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
$ cd Android/Sdk/emulator/lib64/libstdc++
$ mv libstdc++.so.6 libstdc++.so.6.bak
$ ln -s /usr/lib64/libstdc++.so.6
https://stackoverflow.com/questions/35911302/cannot-launch-emulator-on-linux-ubuntu-15-10
success!!