(实例中缺少 Vulkan 1.0 API)通过 Android Studio 3.5 和 3.6 Canary 9 启动 Android Emulator(Q API 29)时 [英] (Vulkan 1.0 APIs missing from instance) when launching Android Emulator(Q API 29) via Android Studio 3.5 and 3.6 Canary 9

查看:33
本文介绍了(实例中缺少 Vulkan 1.0 API)通过 Android Studio 3.5 和 3.6 Canary 9 启动 Android Emulator(Q API 29)时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下系统映像创建了三个基于 Android Q (API 29) 的 AVD:
Android 10(Google Play)、Android 10(Google API)、Android 10.

I created three AVDs base on Android Q (API 29), using these system images:
Android 10(Google Play), Android 10(Google APIs), Android 10.

所有这些模拟器都无法启动.出现以下错误:

All of these emulators failed to launch. With the following error:

18:38   Emulator: VK_VERSION_1_0 check failed: vkCreateInstance not found

18:38   Emulator: VK_VERSION_1_0 check failed: vkEnumerateInstanceExtensionProperties not found

18:38   Emulator: VK_VERSION_1_0 check failed: vkEnumerateInstanceLayerProperties not found

18:38   Emulator: createOrGetGlobalVkEmulation: Warning: Vulkan 1.0 APIs missing from instance

18:38   Emulator: Process finished with exit code 0

我已经参考了这个链接:
模拟器:意外功能列表:MultiDisplay VulkanNullOptionalStrings YUV420888toNV21 YUVCache
但是这个问题和我的问题不同.

I have referred to this link:
Emulator: Unexpected feature list: MultiDisplay VulkanNullOptionalStrings YUV420888toNV21 YUVCache
But this issue is different from my issue.

我在 Android Studio 3.5 和 Android Studio 3.6 Canary 9 中尝试过,这是稳定版和预览版的最新版本.两者都以相同的结果结束.

I tried in Android Studio 3.5, and Android Studio 3.6 Canary 9, the latest version in stable and preview channel. Both end with the same result.

https://source.android.google.cn/devices/graphics/实现-vulkan
根据这个页面,Vulkan 1.0 应该从 Android 7.0 开始就已经存在,我不知道为什么 Android 10 上缺少 Vulkan 1.0.

https://source.android.google.cn/devices/graphics/implement-vulkan
According to this page, Vulkan 1.0 should already exists since Android 7.0, I have no idea why Vulkan 1.0 is missing on Android 10.

还是等谷歌正式发布Android 10后更新版本的系统镜像?

Or should I just wait for the newer version of system image after Google officially release Android 10?

推荐答案

我的系统上遇到了同样的问题 - Ubuntu 19.10 和 Android Studio 3.5.3.除了我遇到实例中缺少 Vulkan 1.1 API"错误并且我的模拟器运行缓慢.

I had the same issue on my system - Ubuntu 19.10 and Android Studio 3.5.3. Except I had a "Vulkan 1.1 APIs missing from instance" error and my emulator was running slow.

问题不在于模拟器,而在于您的主机系统.您的主机系统不支持新的 Android 10 模拟器使用的 Vulkan API.

为了解决这个问题,我必须从 第三方 PPA.

To fix this, I had to install a newer version of the mesa packages from a third-party PPA.

这样做的步骤:

  1. 运行 sudo add-apt-repository ppa:kisak/kisak-mesa 将 PPA 添加到您的系统.

  1. run sudo add-apt-repository ppa:kisak/kisak-mesa to add the PPA to your system.

运行 sudo apt update,然后运行 ​​sudo apt upgrade.这应该从 PPA 下载并安装较新的 mesa 包.

run sudo apt update and then sudo apt upgrade. This should download and install the newer mesa packages from the PPA.

为了安全起见,我重新启动了系统,现在模拟器运行良好且流畅.

I rebooted my system just to be safe, and the emulator runs fine and smooth now.

这篇关于(实例中缺少 Vulkan 1.0 API)通过 Android Studio 3.5 和 3.6 Canary 9 启动 Android Emulator(Q API 29)时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆