首页 > 解决方案 > 设备中缺少 Vulkan 1.1 API - Android Studio 模拟器

问题描述

在 Manjaro Linux 上。

运行 Android Studio 3.6.3。一切都很好,但是当我尝试启动任何模拟器时,我收到了这个错误:

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

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

Studio SDK 已安装:

已安装 Android SDK

已安装 Vulkan 驱动程序:

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

曼扎罗资料:

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-studioandroid-emulatormanjaro

解决方案


您可以按照此处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

推荐阅读