设备中缺少 Vulkan 1.1 API - Android Studio 模拟器 [英] Vulkan 1.1 APIs missing from device - Android Studio Emulator
问题描述
在 Manjaro Linux 上.
On Manjaro Linux.
运行 Android Studio 3.6.3.一切正常,但是当我尝试启动任何模拟器时,我收到此错误:
Running Android Studio 3.6.3. Everything works great, but when I try to launch any emulator I am getting this error:
模拟器:createOrGetGlobalVkEmulation:警告:设备中缺少 Vulkan 1.1 API
除了尝试使用 Android Studio 模拟器之外,我没有遇到任何驱动程序问题.
I'm not having any driver issues outside of trying to use the Android Studio Emulator.
我在 manjaro 中安装了 Radeon 的 Vulkan mesa 驱动程序.我还在 BIOS 中为处理器启用了虚拟化.
I have Radeon's Vulkan mesa driver installed in manjaro. I also have virtualization enabled for processor in 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
推荐答案
您可以按照此处的指示解决该问题 https://stackoverflow.com/a/59715169/1796802:
You can work around it as indicated here https://stackoverflow.com/a/59715169/1796802 :
创建文件~/.android/advancedFeatures.ini
(对于 Windows 用户路径应为 C:\Users\Dane\.android\advancedFeatures.ini
),内容如下:
Create the file ~/.android/advancedFeatures.ini
(for Windows users path should be C:\Users\Dane\.android\advancedFeatures.ini
) with the following content:
# 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
这篇关于设备中缺少 Vulkan 1.1 API - Android Studio 模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!