【问题标题】:Android emulator version 30.5.4.0 mac os issuesAndroid 模拟器版本 30.5.4.0 mac os 问题
【发布时间】:2021-04-08 11:01:53
【问题描述】:

我正在尝试运行 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

我已经尝试了这篇文章中推荐的所有步骤 Android Emulator 30.4.5 not working on MacOS 而从 stackoverflow 和 google 搜索结果上的其他相关帖子来看,还没有成功。

Mac OS Big Sur 11.2.3

【问题讨论】:

标签: android android-studio android-emulator


【解决方案1】:

我从this answer 找到了一个解决方案。

您必须从 google 存储库 https://dl.google.com/android/repository/emulator-darwin-6885378.zip 下载模拟器,并将您已经安装的模拟器替换为下载的模拟器。

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

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

在此之后,您的模拟器应该可以正常工作了。

【讨论】:

    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-04
      • 2020-12-18
      • 2021-07-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多