Android Studio Emulator: VK_VERSION_1_1 check failed

隐身守侯 提交于 2020-05-25 06:14:10

问题


I have a problem with Android Studio, when I run AVD on the event log information it always says

11:17 Emulator: VK_VERSION_1_1 check failed: vkBindBufferMemory2 not found

11:17 Emulator: VK_VERSION_1_1 check failed: vkBindImageMemory2 not found

11:17 Emulator: VK_VERSION_1_1 check failed: vkGetDeviceGroupPeerMemoryFeatures not found

11:17 Emulator: VK_VERSION_1_1 check failed: vkCmdSetDeviceMask not found

11:17 Emulator: VK_VERSION_1_1 check failed: vkCmdDispatchBase not found

11:17 Emulator: VK_VERSION_1_1 check failed: vkGetImageMemoryRequirements2 not found

11:17 Emulator: VK_VERSION_1_1 check failed: vkGetBufferMemoryRequirements2 not found

11:17 Emulator: VK_VERSION_1_1 check failed: vkGetImageSparseMemoryRequirements2 not found

11:17 Emulator: VK_VERSION_1_1 check failed: vkTrimCommandPool not found

11:17 Emulator: VK_VERSION_1_1 check failed: vkCreateSamplerYcbcrConversion not found

11:17 Emulator: VK_VERSION_1_1 check failed: vkDestroySamplerYcbcrConversion not found

11:17 Emulator: VK_VERSION_1_1 check failed: vkCreateDescriptorUpdateTemplate not found

11:17 Emulator: VK_VERSION_1_1 check failed: vkDestroyDescriptorUpdateTemplate not found

11:17 Emulator: VK_VERSION_1_1 check failed: vkUpdateDescriptorSetWithTemplate not found

11:17 Emulator: VK_VERSION_1_1 check failed: vkGetDescriptorSetLayoutSupport not found

11:17 Emulator: createOrGetGlobalVkEmulation: Warning: Vulkan 1.1 APIs missing from device

11:18 Emulator: deleteSnapshot: for default_boot


回答1:


I have solved my problem by adapting this:

https://androidstudio.googleblog.com/2019/05/emulator-2909-stable.html

It's a work around rather than a solution

# 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

My sistem:

  • Linux Kernel: 5.4.6-2-MANJARO
  • Android Q (10.0)
  • Emulator 29.3.5



回答2:


Run into the same issue and here how I solve this, Launch Android Virtual Device with android studio puzzled me a lot, post my actions here just as a reference.

  1. Uninstall latest Radeon GPU drive(Adrenalin 2019 Edition 19.10.2 Optional)
  2. Install the latest Recommended drive(Adrenalin 2019 Edition 19.9.2 Recommended (WHQL))
  3. Enable the Windows Hypervisor Platform feature(Reference).

now you can run x86 images in AVD.

And, don't know if some info related to this, since these words always are shown together, I also paste here.

  1. Using AMD RYZEN 3700X and AMD Radeon 5700XT hardware.
  2. enabled CPU Virtualization (called AMD-V) in BIOS(Reference)
  3. Disabled Hyper-v in turn windows features on or off (distinguish from Windows Hypervisor Platform above, they are quite different things)
  4. Using the latest android studio(version 3.5.1)



回答3:


I just purchased a ryzen 5 laptop with vega 8 video and was having alot of problems running the Android Studio emulator in the end the problem was resolved and it was very simple.

1: enable SVM or other virtual machine setting in the BIOS 2: disable all hypervisor and virtual machine features by going to "Turn features on / off" in windows. 3: ensure you checkmark the AMD driver and uncheck HAXM in "SDK Tools" is SDK Manager.

And most important:

it is said that the latest update of android studio automatically installs the AMD driver once selected, however I found this not to be the case so the last step you need to do manually just to make sure.

4:run : C:\users\username\AppData\Local\Android\Sdk\extras\google\Android_Emulator_Hypervisor_Driver\silent_install.bat



来源:https://stackoverflow.com/questions/58152237/android-studio-emulator-vk-version-1-1-check-failed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!