美文网首页
grant current user access to /de

grant current user access to /de

作者: Yyyye | 来源:发表于2018-06-05 23:14 被阅读0次

第一个问题是 grant current user access to /dev/kvm

  apt-get install qemu-kvm cpu-checker
  ​
  Check if KVM is available (as jenkins user
  ​
  $ kvm-ok
  INFO: /dev/kvm exists
  KVM acceleration can be used
  ​
  Create group kvm and add <USERNAME> to this group
  ​
  addgroup kvm
  usermod -a -G kvm <USERNAME>
  ​
  Change group ownership for /dev/kvm
  ​
  chgrp kvm /dev/kvm
  ​
  Create udev rule
  ​
  $ sudo nano /etc/udev/rules.d/60-qemu-kvm.rules
  KERNEL=="kvm", GROUP="kvm", MODE="0660"
  ​
  Reboot

注意 : 需要重启 <USERNAME> 替换为你的用户名

第二个问题, 提示这样的错误

下午8:45 Emulator: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

现在 笔者以Andriod 4.4为例


2018-06-05 23-16-42 的屏幕截图.png

在选在AVD的页面上选择使用软加速(Software GLES 1.1) 如图所示,如果你的虚拟机无法配置Emulated Performance 那么请删除这个AVD 同时使用一个不带有google商店(Google store)版本的虚拟机 这样问题就解决了.

参考资料

问题一:https://stackoverflow.com/questions/42814538/android-studio-2-3-using-emulator-from-console-dev-kvm-device-permission-den

问题二 : https://stackoverflow.com/questions/44328225/cant-change-emulated-performance-of-avd-in-android-studio

相关文章

网友评论

      本文标题:grant current user access to /de

      本文链接:https://www.haomeiwen.com/subject/pjkvsftx.html