Sus*_*mar 20 android-emulator android-studio flutter
当我在 64 位 Windows 10 Pro 中从 Android Studio 运行模拟器时,它显示以下错误:
13-01-2021
10:42 AM Emulator: handleCpuAcceleration: feature check for hvf
10:42 AM Emulator: cannot add library vulkan-1.dll: failed
10:42 AM Emulator: cannot add library vulkan-1.dll: failed
10:42 AM Emulator: Process finished with exit code -1073741819 (0xC0000005)
Run Code Online (Sandbox Code Playgroud)
并且模拟器没有打开。我已经卸载了当前版本 (4.1.1) 并安装了 Android Studio 4.0.1,但问题没有解决,现在我使用的是最新版本的 Android Studio,即 4.1.1。
这是颤振医生的输出:

FAQ*_*AQi 15
我不知道 Microsoft Visual Studio Code(VS Code) 本身是否需要vulkan-1.dll或我的以下任何 VS-Code 扩展:
,正如我发现您可能会vulkan-1.dll在 Microsoft VS Code 的以下文件夹路径中找到缺少的内容:
C:\Users\{your_username}\AppData\Local\Programs\Microsoft VS Code\
因此,如果您安装了 Microsoft Visual Studio Code,您may会vulkan-1.dll在上面引用的路径中找到,从这里只需复制vulkan-1.dll文件,然后粘贴在:
C:\Users\{your_username}\AppData\Local\Android\Sdk\emulator\lib64
粘贴文件后,重新启动 Android Studio 并重新运行模拟器/AVD。
昨天我安装了最新版本的 Android Studio(稳定频道上的 4.2.2)时遇到了同样的错误。每次我尝试启动模拟器时,都会收到一条警告,说“AVD 的模拟器进程已被杀死”,在查看 IDE 的日志后,我发现了这一点:
2021-07-01 18:00:48,415 [ 62545] INFO - manager.EmulatorProcessHandler - Emulator: cannot add library vulkan-1.dll: failed
2021-07-01 18:00:48,415 [ 62545] INFO - manager.EmulatorProcessHandler - Emulator: cannot add library vulkan-1.dll: failed
2021-07-01 18:00:48,668 [ 62798] INFO - manager.EmulatorProcessHandler - Emulator: emulator: Android emulator version 30.7.5.0 (build_id 7491168) (CL:N/A)
2021-07-01 18:00:48,676 [ 62806] INFO - manager.EmulatorProcessHandler - Emulator: Process finished with exit code -1073741819 (0xC0000005)
2021-07-01 18:00:48,676 [ 62806] WARN - manager.EmulatorProcessHandler - Emulator terminated with exit code -1073741819
Run Code Online (Sandbox Code Playgroud)
我尝试了我能找到的所有“解决方案”,但在我下载 vulkan-1.dll 并将其放置在 C:\Windows\System32 之前没有任何效果
只需去谷歌搜索 vulkan-1.dll 文件,下载并放置在 C:\Windows\System32
Armando 的答案是一个有效的解决方案。但是我觉得将来自 Internet 的任意 DLL 打包到 System32 文件夹中并不舒服。但是,基于 Armando 的解决方案,我找到了一种让我感觉更舒服的方法 - 但是,它仍然是一种解决方法:
{ANDROID_HOME}\emulator\lib64\四个步骤。
然后运行你的模拟器并看到它出现。
自更新 v30.7.5 以来,我遇到了这个问题。
我试过这个解决方案:
1.创建文件~/.android/advancedFeatures.ini(Windows用户路径为C:\Users<username>.android\advancedFeatures.ini),内容如下:
以下是禁用 Vulkan 应用程序与模拟器对话的方法。将以下行添加到 ~/.android/advancedFeatures.ini(如果该文件不存在,则创建该文件):
Vulkan = 关闭
GLDirectMem = 开
如果您在 Visual\xc2\xa0Studio 中运行xamarin.android,我强烈建议卸载所有设备模拟器并重新启动 Visual\xc2\xa0Studio,然后再次运行您的应用程序。
\n| 归档时间: |
|
| 查看次数: |
19425 次 |
| 最近记录: |