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
目录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 分钟
Android-ORM-框架:GreenDao入门
GreenDao 简介 GreenDAO 是一款开源的面向 Android 的轻便、快捷的 ORM 框架,将 Java 对象映射到 SQLite 数据库中,我们操作数据库的时候,不在需要编写复杂的 SQL语句, 在性能方面,GreenDAO 针对 Android 进行了高度优化, 最小的内存开销 、依赖体积小 同时还是支持数据库加密。 GreenDAO 官网地址:http://greenrobot
2022-05-27 · Android开发 · 约 1 分钟
Android-Studio-插件记录
GsonFormat https://blog.csdn.net/leejizhou/article/details/50557786 ButterKnifeZelezny http://blog.csdn.net/leejizhou/article/details/50541356 SQLScout SQLite调试神器。 http://www.idescout.com/ https://plu
2021-12-18 · Android开发 · 约 1 分钟
记一次AndroidStudio在Linux环境上的奇葩错误,Argument-for-@NotNull-parameter-'messag
错误信息 Argument for @NotNull parameter 'message' of com/android/tools/idea/gradle/project/sync/GradleSyncState.syncFailed must not be null java.lang.IllegalArgumentException: Argument for @NotNull param
2022-05-27 · Android开发 · 约 1 分钟
讨论
共 0 条加载评论中…