【问题标题】:Error for Android Emulator: Deciding if GLDirectMem/Vulkan should be enabledAndroid 模拟器错误:决定是否应启用 GLDirectMem/Vulkan
【发布时间】:2020-02-11 07:58:26
【问题描述】:

当我尝试在 Mac 上的 Andriod Studio 上运行项目时,出现如下内部错误:

Andriod Emulator closed because of an internal error:
emuglConfig_init: blaclisted=0 has_guest_renderer=1

emuglConfig_init: auto-selected host based on conditions and UI preference 0

Deciding if GLDirectMem/Vulkan should be enabled. 
Selected renderer: 1API level: 27 host GPU blacklisted?1 
Host GPU selected, not enabling Vulkan because either API level is
Not enabling Vulkan here(Feature flag may be turned on manually)

请查看附件中的错误截图以获取更多详细信息:

【问题讨论】:

  • 我遇到了同样的问题。你是怎么解决的?

标签: macos android-studio android-emulator


【解决方案1】:

目前,Andriod studio 3.5.1 不支持 Intel UHD Graphics 630 1536 MB (MacBook 2019)。请在此处找到more information

【讨论】:

  • 我有一个 2018 MBP,这也发生了。
  • 我有一个 2017 MBP,只有在我创建自定义分辨率模拟器设备时才会发生这种情况
  • 有趣的事实:有时它可以工作,有时它不能(MacBook Pro 2016)
【解决方案2】:

就我而言,我必须更新/安装我的英特尔 VGA 驱动程序。虽然安装了 Nvidia

【讨论】:

  • 这里的问题是关于 Macbook。您无法在 Mac 上更新英特尔核芯显卡驱动程序。 Apple 使用软件更新提供驱动程序。通过使您的 Mac 保持最新,您应该始终拥有最新的驱动程序。 Mac 也没有非官方的 Intel HD Graphics 驱动程序。不幸的是,NVIDIA 目前无法发布驱动程序,除非得到 Apple 的批准。
【解决方案3】:

就我而言,我通过从 Android Studio > Window > SDK Manager > SDK Tools 将“Android Emulator”更新到最新版本解决了这个问题(确保 Android Emulator 更新到最新版本)。

【讨论】:

    【解决方案4】:

    解决方案来源-> https://stackoverflow.com/a/63244455/16412512 您可以按照此处https://stackoverflow.com/a/59715169/1796802 的指示解决它: 使用以下内容创建文件 ~/.android/advancedFeatures.ini(对于 Windows 用户路径应为 C:\Users\Dane.android\advancedFeatures.ini): 下面介绍了如何禁用 Vulkan 应用与模拟器通信。

    # Add the following lines to ~/.android/advancedFeatures.ini (create this file if it doesn't exist already):
    # Vulkan = off
    # GLDirectMem = on
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-03-29
      • 1970-01-01
      • 2021-11-06
      • 1970-01-01
      • 2018-07-11
      • 2020-10-16
      • 1970-01-01
      相关资源
      最近更新 更多