曦远 (DealiAxy)一份私人的文字刊物

StarBlog
返回文章列表折页手记阅读全文
Android开发

Android Development: Solving the /dev/kvm Device Permission Denied Issue on Linux

Steps I use Ubuntu. First, you need to install qemu-kvm: sudo apt install qemu-kvm Add the current user to the kvm group: sudo adduser $USER kvm Check the owner of /dev/kvm: ls -al /dev/kvm Usually the result is that the owner is root and the kvm group After adding, check whether your username is in the kvm group: grep kvm /etc/group Usually

曦远 (DealiAxy)约 3 分钟
目录3 个章节

Steps

I use Ubuntu. First, you need to install qemu-kvm:

sudo apt install qemu-kvm

Add the current user to the kvm group:

sudo adduser $USER kvm

Check the owner of /dev/kvm:

ls -al /dev/kvm

Usually the result is that the owner is root and the kvm group

After adding, check whether your username is in the kvm group:

grep kvm /etc/group

Usually the result looks like this:

kvm:x:数字:用户名

Then restart the system for it to take effect. If you don't want to restart, you can run the following command (you still need to log out and log back in for it to take effect):

udevadm control --reload-rules && udevadm trigger

P.S.: Anyway, I chose to restart

References

https://stackoverflow.com/questions/37300811/android-studio-dev-kvm-device-permission-denied

Welcome to Discuss

I have compiled a series of technical articles and materials. Reply linux, flutter, c#, netcore, android, java, python, etc. in the backend of the WeChat official account “Programming Lab” to get related technical articles and res

_EOF_

Android Development: Solving the /dev/kvm Device Permission Denied Issue on Linux

本文作者:
程序设计实验室
版权声明:
本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!

相关文章

Android开发:对Gradle的折腾记录

前言 有点烦,最近给电脑升级一下配置,加了内存和固态硬盘,结果新内存不太兼容,导致电脑频繁死机,去找商家换了一条内存之后就好了,这也导致我贸然重装了系统 = =... 有一点资料放在系统盘忘记保存结果丢了。今天下午才把新系统配置好,所以这两天都没有办法写推文。 (不得不说Chrome真是好用,这同步功能免去了很多麻烦。) 首先喷一下Gradle 缺点:占用资源大,速度又慢,在国内用网络还很差。 今

2022-05-27 · Android开发 · 约 1 分钟

讨论

共 0 条

良言一句三冬暖,恶语伤人六月寒。

加载评论中…