模拟器问题(模拟器:createOrGetGlobalVkEmulation:警告:设备缺少 Vulkan 1.1 API)

Emulator Problem ( Emulator: createOrGetGlobalVkEmulation: Warning: Vulkan 1.1 APIs missing from device )

我用 Android Studio API30 创建了一个模拟器,当我使用模拟器时,我遇到了一些错误;

12:29   Emulator: VK_VERSION_1_1 check failed: vkBindBufferMemory2 not found

12:29   Emulator: VK_VERSION_1_1 check failed: vkBindImageMemory2 not found

12:29   Emulator: VK_VERSION_1_1 check failed: vkGetDeviceGroupPeerMemoryFeatures not found

12:29   Emulator: VK_VERSION_1_1 check failed: vkCmdSetDeviceMask not found

12:29   Emulator: VK_VERSION_1_1 check failed: vkCmdDispatchBase not found

12:29   Emulator: VK_VERSION_1_1 check failed: vkGetImageMemoryRequirements2 not found

12:29   Emulator: VK_VERSION_1_1 check failed: vkGetBufferMemoryRequirements2 not found

12:29   Emulator: VK_VERSION_1_1 check failed: vkGetImageSparseMemoryRequirements2 not found

12:29   Emulator: VK_VERSION_1_1 check failed: vkTrimCommandPool not found

12:29   Emulator: VK_VERSION_1_1 check failed: vkCreateSamplerYcbcrConversion not found

12:29   Emulator: VK_VERSION_1_1 check failed: vkDestroySamplerYcbcrConversion not found

12:29   Emulator: VK_VERSION_1_1 check failed: vkCreateDescriptorUpdateTemplate not found

12:29   Emulator: VK_VERSION_1_1 check failed: vkDestroyDescriptorUpdateTemplate not found

12:29   Emulator: VK_VERSION_1_1 check failed: vkUpdateDescriptorSetWithTemplate not found

12:29   Emulator: VK_VERSION_1_1 check failed: vkGetDescriptorSetLayoutSupport not found

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

CPU : Ryzen 5,flutter 的所有更新都已完成,android studio,sdks 以及所有 cpu 更新。

你能帮帮我吗?

您必须禁用连接到模拟器的 Vulkan 应用程序。因此,您必须将以下行添加到 ~/.android/advancedFeatures.ini 文件中。如果文件不存在,您应该创建该文件。

Vulkan = off
GLDirectMem = on

保存文件并重启Android模拟器。