Art*_* Z. 7 android android-emulator android-studio
我正在尝试运行 android 模拟器,但不是成功,而是出现错误和滞后的 ui 错误:
handleCpuAcceleration: feature check for hvf
cannot add library /Library/Android/sdk/emulator/qemu/darwin-x86_64/lib64/vulkan/libvulkan.dylib: failed
added library /Library/Android/sdk/emulator/lib64/vulkan/libvulkan.dylib
cannot add library /Library/Android/sdk/emulator/qemu/darwin-x86_64/lib64/vulkan/libMoltenVK.dylib: failed
HVF error: HV_ERROR
qemu-system-x86_64: failed to initialize HVF: Invalid argument
Failed to open the hax module
No accelerator found.
qemu-system-x86_64: failed to initialize HAX: Operation not supported by device
added library /Library/Android/sdk/emulator/lib64/vulkan/libMoltenVK.dylib
Run Code Online (Sandbox Code Playgroud)
我已经尝试了这篇文章Android Emulator 30.4.5 not working on MacOS 以及其他有关 stackoverflow 和 google 搜索结果的相关文章中推荐的所有步骤 ,但尚未成功。
Mac OS 大苏尔 11.2.3
小智 3
对我来说,从这个答案中找到了一个解决方案。
您必须从 google 存储库https://dl.google.com/android/repository/emulator-darwin-6885378.zip下载模拟器,并将已安装的模拟器替换为下载的模拟器。
如果您像我一样启用了文件隔离,则必须将其从下载的文件中删除:
xattr -r -d com.apple.quarantine /path/to/dir
Run Code Online (Sandbox Code Playgroud)
之后,您的模拟器应该可以正常工作。
| 归档时间: |
|
| 查看次数: |
667 次 |
| 最近记录: |