安卓模拟器版本30.5.4.0在Mac OS上出现问题

7

我正在尝试运行Android模拟器,但是我遇到了错误和延迟的用户界面。

错误信息:

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

我已经尝试了这篇文章Android模拟器30.4.5在MacOS上无法工作中推荐的所有步骤,以及其他相关的stackoverflow和谷歌搜索结果,但仍未成功。
Mac OS Big Sur 11.2.3

我在升级到11.3后才开始遇到这个问题。不确定原因。 - Dhananjay Suresh
https://dev59.com/D1EG5IYBdhLWcg3wW7bO#67288845 - laalto
2个回答

3

对我而言,这个答案提供的解决方案起了作用。

你需要从Google存储库https://dl.google.com/android/repository/emulator-darwin-6885378.zip下载模拟器,并用已下载的模拟器替换您已经安装的模拟器。

如果像我一样启用了文件隔离,则必须从下载的文件中删除它:

xattr -r -d com.apple.quarantine /path/to/dir

完成以上步骤后,您的模拟器应该可以正常工作了。


1

看起来模拟器更新版本:30.5.6已解决了这个问题。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接