【问题标题】:Vulkan 1.1 APIs missing from device - Android Studio Emulator设备中缺少 Vulkan 1.1 API - Android Studio 模拟器
【发布时间】:2020-09-09 21:39:51
【问题描述】:

在 Manjaro Linux 上。

运行 Android Studio 3.6.3。一切正常,但当我尝试启动任何模拟器时,我收到此错误:

Emulator: createOrGetGlobalVkEmulation: Warning: Vulkan 1.1 APIs missing from device

除了尝试使用 Android Studio Emulator 之外,我没有遇到任何驱动程序问题。

已安装 Studio SDK:

Vulkan 驱动已安装:

我在 manjaro 中安装了 Radeon 的 Vulkan mesa 驱动程序。我还在 BIOS 中为处理器启用了虚拟化。

Manjaro 信息:

System:    Host: command Kernel: 5.4.40-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0 
CPU:       Topology: 8-Core model: AMD Ryzen 7 2700X bits: 64 type: MT MCP arch: Zen+ rev: 2 L2 cache: 4096 KiB 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] 
           vendor: Micro-Star MSI driver: amdgpu v: kernel bus ID: 0a:00.0 
           Display: x11 server: X.org 1.20.8 driver: amdgpu resolution: <xdpyinfo missing> 
           OpenGL: renderer: Radeon RX 580 Series (POLARIS10 DRM 3.35.0 5.4.40-1-MANJARO LLVM 10.0.0) v: 4.6 Mesa 20.0.6 
           direct render: Yes

【问题讨论】:

    标签: android-studio android-emulator manjaro


    【解决方案1】:

    您可以按照此处https://stackoverflow.com/a/59715169/1796802 的指示解决它:

    创建文件~/.android/advancedFeatures.ini (对于 Windows 用户,路径应为 C:\Users\Dane\.android\advancedFeatures.ini),内容如下:

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

    【讨论】:

    • 如果您在 Android Studio 4.2.2 中找不到amdvlk.dll,此答案会很有帮助。
    • 这行得通。但是现在 CPU 使用率变得疯狂。还是谢谢。
    • 你绝对是救命稻草,我被困在这个问题上超过 24 小时
    猜你喜欢
    • 2020-10-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-05
    • 1970-01-01
    • 2015-01-08
    • 1970-01-01
    相关资源
    最近更新 更多