android-studio - 设备中缺少 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 已安装:
已安装 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
解决方案
您可以按照此处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
推荐阅读
- c++ - 无法清除字符串引用
- reactjs - 在 Slick 内第一次单击时,锚标记“ ”不起作用
- azure - 还原加入域的加密虚拟机
- android - 具有单一事实来源的 Android 用例
- lisp - 列表中位置 n 的元素是什么
- django - 带有外部存储的 url.py settings.py 和 Dropbox
- python-3.x - Django - 表单未保存到 Db
- r - 选择具有多个 if 和 if else 语句的行 (R)
- javascript - 执行 php 脚本后的 JavaScript 警报窗口
- r - 使用 NA 和 R 中其他变量的值进行变异和 ifelse