通过Android Studio 3.5和3.6 Canary 9启动Android Emulator(Q API 29)时(实例缺少Vulkan 1.0 API) [英] (Vulkan 1.0 APIs missing from instance) when launching Android Emulator(Q API 29) via Android Studio 3.5 and 3.6 Canary 9
问题描述
我使用以下系统映像基于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
根据此页面,自Android 7.0起,Vulkan 1.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.
或者我应该在Google正式发布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.
步骤如下:
-
运行
sudo add-apt-repository ppa:kisak/kisak-mesa
将PPA添加到您的系统.
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.
这篇关于通过Android Studio 3.5和3.6 Canary 9启动Android Emulator(Q API 29)时(实例缺少Vulkan 1.0 API)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!