返回文章列表文章索引阅读全文
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 许可协议。转载请注明出处!

相关文章

该死的应用闪退,终于解决error-while-inflating-CardView

前言 (先来一个微笑脸)这个问题已经困扰我好久了,之前各种搜索无果,得到的解决方案无非就是 AppCompact 和 CardView 包的版本不一样云云,然而我根本没有这个问题。(怕是不把我Gradle看在眼里?) 问题 就是这么个界面,用到了RecycleView和Cardview,但是在SDK 23以下都不行,官方已经写明这个组件是支持到SDK9还是10的,反正基本是个android手机就可

2022-08-22 · Android开发 · 约 1 分钟

讨论

共 0 条

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

加载评论中…