AM 模拟器:库 vulkan-1.dll:handleCPUAcceleration 失败 [英] AM Emulator: Library vulkan-1.dll: failed for handleCPUAcceleration
问题描述
模拟器在 Windows 10 上的 Android Studio 中运行时显示以下错误:
04-04-202114:45 AM 模拟器:handleCpuAcceleration:hvf 功能检查14:45 AM 模拟器:无法添加库 vulkan-1.dll:失败14:45 AM 模拟器:无法添加库 vulkan-1.dll:失败14:45 AM 模拟器:进程完成,退出代码 -1073741819 (0xC0000005)
新安装不起作用.该怎么办?下面给大家介绍一下,不要着急.:)
准备
确保您已安装最新的驱动程序包:
Android 10+
在 Android 10 及更高版本中,您无法更改模拟性能(图形),如下所示:
因此您需要编辑AVD 的config.ini
文件.在 Windows 资源管理器中输入以下路径:
C:/Users//.android/avd//config.ini
请注意,
需要替换为您的计算机名称,对于
,您需要放置您创建的设备的名称.就我而言 Nexus_5X_API_24.avd
现在编辑提到的文件并更改为如下所示的属性:
hw.gpu.enabled=nohw.gpu.mode=关闭
现在保护您的更改.请记住仅在 Android studio
关闭时才编辑文件,以便在启动软件时应用更改.
感谢阅读!我会一如既往地更新这篇文章.干杯!:)
The Emulator shows following error when you run it in Android Studio on Windows 10:
04-04-2021
14:45 AM Emulator: handleCpuAcceleration: feature check for hvf
14:45 AM Emulator: cannot add library vulkan-1.dll: failed
14:45 AM Emulator: cannot add library vulkan-1.dll: failed
14:45 AM Emulator: Process finished with exit code -1073741819 (0xC0000005)
New installation doesn't work. What to do? I show you below, don't panic. :)
PREPERATION
Ensure that you have installed the newest Driver Package:
Direct Download Vulkan Driver Package for Windows
Direct Download MoltenVK (Vulkan Driver) for MacOS.
FOR ANDROID 6 TILL <10
If you’re using Android 6 and above but less than Android 10 in Emulator then Re-Create the Emulator and Select Software – GLES 2.0 in the Emulated Performance while creating the AVD (or edit existing AVD).
FOR ANDROID 10+
In Android 10 and higher, you are not able to change the Emulated Performance (Graphics) as you can see below:
Therefore you need to edit the config.ini
file of your AVD. Type the following path into your Windows Explorer:
C:/Users/<pc_name>/.android/avd/<AVD-device>/config.ini
Note that <pc_name>
needs to replaced with your computer name and for <AVD-device>
you need to place the name of your created device. In my case Nexus_5X_API_24.avd
Now edit the mentioned file and change to attributes as shown below:
hw.gpu.enabled=no
hw.gpu.mode=off
Now safe your changes. Remember to edit the file only if Android studio
is closed to make changes apply at starting the software.
Thank you for reading! I keep this post updated as always. Cheers! :)
这篇关于AM 模拟器:库 vulkan-1.dll:handleCPUAcceleration 失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!