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

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

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


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

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


错误图片:


当前回答

更改AVD中的“Graphics”属性,选择“software—Gles2.0”。 这对我很管用。

其他回答

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

步骤如下:-

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.

在我的例子中,这个问题发生在一个苹果硅CPU (m1, arm64)的MacBook Pro上,因为我从一个带英特尔CPU的旧MacBook Pro上迁移了Android Studio和Android SDK。我重新安装了ARM版本的Android Studio,并更新了Android SDK,但似乎英特尔模拟器版本仍然存在。解决方案是卸载并重新安装Android模拟器:

工具—> SDK管理器—> SDK工具选项卡

对于我自己,我在$ANDROID_HOME环境变量中有一个不匹配。

它指向的是我下载Android Studio之前的一个旧位置。更新到$HOME/Library/Android/sdk,我们很好。

我在Ubuntu 20.04.3 LTS上运行Android Studio Bumblebee 2021.1.1时遇到了这个问题。

在我的情况下,问题是NVideo内核模块和NVideo客户端库之间的不匹配,从dmesg输出中注意到(这些日志条目出现在每次AVD重新启动和失败时):

NVRM: API mismatch: the client has the version 470.103.01, but
NVRM: this kernel module has the version 470.86.  Please                           
NVRM: make sure that this kernel module and all NVIDIA driver                           
NVRM: components have the same version.

我的解决方案是使用Ubuntu的附加驱动程序对话框升级NVidia驱动程序以打包NVidia -driver-510。然后重新启动。

以防有人面临这个问题。我是这样解决的:

转到C:\Users\YourUserName\.android 创建一个名为advancedFeatures.ini的文件 然后在文件中添加以下代码行: 关闭 GLDirectMem = on