在开发的过程中,突然有一天模拟器猛然抽风,错误信息是KVM is required to run this AVD. /dev/kvm is not found. 这样,但网上大部分的解决方式是windows 或者liuex的。在Mac上行不通,在google上找到解决方发https://stackoverflow.com/questions/46565353/dev-kvm-is-not-found-on-mac-os
首先到https://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager-intel-haxm这个网址上找到mac os下的最新版本,然后更新。
将图片1.0.1 中的圈圈内勾选,然后apply,注意:更新版本后,需要重新查看是否勾选,
![](https://img.haomeiwen.com/i6049438/12a5324097137471.png)
这时你可能会爆. /dev/kvm is not found.的问题,然后在系统偏好设置中的安全性与隐私中的这个位置
![](https://img.haomeiwen.com/i6049438/9ee10b0fa2a256d7.png)
会有一项关于权限的提醒,点击确定。然后重复1.0.1中的操作,之后运行就好啦。
成功点个赞哦。
网友评论