设备中缺少 Vulkan 1.1 API - Android Studio 模拟器

Zel*_*elf 4 android-emulator android-studio manjaro

在 Manjaro Linux 上。

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

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

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

已安装 Studio SDK:

已安装 Android 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
Run Code Online (Sandbox Code Playgroud)

Gre*_*ane 17

您可以按照此处/sf/answers/4180061861/ 的指示解决此问题:

使用以下内容创建文件~/.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
Run Code Online (Sandbox Code Playgroud)

  • 你绝对是我的救星,我已经被困在这个问题上超过24小时了 (2认同)