在更新到Android Studio 2020.3.1金丝雀15后,当我试图运行模拟器时,它会被这个错误杀死:

AVD Pixel_4_API_30的模拟器进程已终止。

它在以前的版本(4.1.3)中工作正常,但现在安装新版本后,它显示相同的错误。


在类似的情况下,我尝试了一些建议的解决方案;然而,它仍然不工作。

我删除了我的模拟器(也清除了目录:/.android/avd/),并再次创建了一个新的模拟器 我将HAXM安装程序更新到7.6.5版本 我试着用较低的api运行模拟器,但是…


错误图片:


当前回答

对我来说,解决方案是执行VulkanRT-Installer.exe

其他回答

我也遇到过同样的问题。通过在我的Windows 10操作系统上启用Hyper-V来修复它。我只是在开始菜单中输入Hyper,然后选择打开或关闭Windows功能菜单,然后勾选所有Hyper- v复选框,像这样:

北极狐更新后遇到了这个问题。

在看到关于终止的错误消息后,打开android studio日志

用户(“C: \ \ YourUserName \ AppData \本地日志\谷歌\ AndroidStudio2020.3 \ \ idea.log”)

向下滚动,并尝试找到日志行文本“模拟器终止与退出代码”。也许,终止的原因可以在这条消息的上面找到几行-对我来说是

“模拟器:无法添加库vulkan-1.dll:失败”。

如果你有同样的原因-去C:\Windows\System32目录,在这里搜索名为vulkan-1-999-0-0-0.dll的文件,并将其重命名为vulkan-1.dll(我已经复制了一份以防万一,并命名为“vulkan-1.dll”)。

这为我解决了问题。

在我的情况下,我有错误的日志定位:

"C:\Users\YourUserName\AppData\Local\Google\AndroidStudio2020.3\log\idea.log"

我的错误:

PANIC:找不到AVD系统路径。请定义ANDROID_SDK_ROOT

这个回答帮助了我

要解决这类问题,通常你没有一些文件,你需要从谷歌下载并粘贴。我也面临着同样的问题。但是在谷歌上花了很多时间后,我终于得到了解决方案。

步骤如下:-

Create virtual device using AVD Manager start the emulator if it is showing your emulator has terminated Then go to ("C:\Users\YourUserName\AppData\Local\Google\AndroidStudio2020.3\log\idea.log") check the issue by scroll down(on bottom you can check) If you are getting the same issue Then go to C:\Windows\System32 directory, search here for file called vulkan-1-999-0-0-0.dll If file is already in directory, then just rename the file into "vulkan-1.dll" else download the file from this link you will have zip file, just extract and paste the vulkan-1-999-0-0-0.dll file and perform the step 8.

这个问题可能是由不同的原因造成的;在我的例子中,这是因为没有找到system-images文件夹的路径。不知何故,sdk中的系统图像文件夹不见了。因为我有一个备份的sdk,我把旧的sdk文件夹,模拟器开始工作。如果您在日志文件中看到如下内容,请尝试这种方法。

模拟器:Pixel 2 API 28 -模拟器:警告:path_getAvdSystemPath: ..rootdirectory/Android/sdk/system-images/ Android -28/google_apis_playstore/x86/不是有效目录。