KVM is required to run this AVD. /dev/kvm device: permission denied.

使用linux系统时,启动Android Studio的模拟器出现下面的提示,无法启动.

	KVM is required to run this AVD.
	/dev/kvm device: permission denied.
	
	Grant current user access to /dev/kvm

解决办法:
https://stackoverflow.com/questions/42814538/android-studio-2-3-using-emulator-from-console-dev-kvm-device-permission-den

	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

把/dev/kvm文件夹权限给指定的用户就好了. sudo chown username -R /dev/kvm

你可能感兴趣的:(android,Android,Studio,开发工具)