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 许可协议。转载请注明出处!
相关文章
记一次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 分钟
该死的应用闪退,终于解决error-while-inflating-CardView
前言 (先来一个微笑脸)这个问题已经困扰我好久了,之前各种搜索无果,得到的解决方案无非就是 AppCompact 和 CardView 包的版本不一样云云,然而我根本没有这个问题。(怕是不把我Gradle看在眼里?) 问题 就是这么个界面,用到了RecycleView和Cardview,但是在SDK 23以下都不行,官方已经写明这个组件是支持到SDK9还是10的,反正基本是个android手机就可
2022-08-22 · Android开发 · 约 1 分钟
Android-ORM-框架:GreenDao入门
GreenDao 简介 GreenDAO 是一款开源的面向 Android 的轻便、快捷的 ORM 框架,将 Java 对象映射到 SQLite 数据库中,我们操作数据库的时候,不在需要编写复杂的 SQL语句, 在性能方面,GreenDAO 针对 Android 进行了高度优化, 最小的内存开销 、依赖体积小 同时还是支持数据库加密。 GreenDAO 官网地址:http://greenrobot
2022-05-27 · Android开发 · 约 1 分钟
Android开发:使用CardView实现卡片式设计
开头引用一段官网的介绍 A FrameLayout with a rounded corner background and shadow. CardView uses elevation property on Lollipop for shadows and falls back to a custom emulated shadow implementation on older platf
2021-12-18 · Android开发 · 约 1 分钟
讨论
共 0 条加载评论中…