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

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

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


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

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


错误图片:


当前回答

Everything Fine. Good Work. Just make a little change. If you have 2 different pixel types appearing on Virtual Device section you have to delete any one of the pixel emulator which you do not prefer for your project. Delete it by clicking drop down arrow > Delete. It'll work for you the way it did for me. If you already have 1 pixel emulator, I might be wrong in telling you that the problem is you need SUFFICIENT SPACE where your ADVs generated OR you need to upgrade the HAXM installer to the latest --v

其他回答

在启动arm64模拟器时遇到了类似的问题。我有足够的磁盘空间,并尝试卸载模拟器并重新安装它。但这并没有帮助。

我能够通过运行以下命令来解决问题:

emulator -list-avds
emulator @NameOfAvd

这假设你在路径上有模拟器。执行最后一个命令显示了以下错误,在Android Studio运行时不可见:

[4453299712]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at ../emulator/lib64/qt/lib
Could not launch '/Users/username/../emulator/qemu/darwin-x86_64/qemu-system-aarch64': No such file or directory

从Android/sdk/tools路径执行命令模拟器@NameOfAvd可以启动arm64 AVD。

我在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。然后重新启动。

进入Android Studio的设备管理器 点击操作面板上的下拉菜单 单击擦除数据 再次启动您的AVD管理器或重新启动您的计算机

故事很短

两周前,我在Windows 11上遇到了这个问题。我在周末的设置中没有执行任何特别的操作。但是在星期一我不能运行模拟器。我尝试通过SDK管理器更新/重新安装Android Studio和它的模块。没有什么帮助。

在C:\Users<User>\AppData\Local\谷歌\AndroidStudio2021.1\log\idea.log中,我发现模拟器启动时Vulkan出现了一些问题。

什么帮助

更新Windows和Nvidia驱动程序到最新版本。 @Darren Smith通过更新Nvidia驱动程序修复了Ubuntu的这个问题。如果这对你没有帮助,你至少可以享受最新的硬件漏洞……

尝试终止模拟器进程,然后可以重新启动模拟器。

在Windows上,打开任务管理器并找到模拟器进程(你可以发现它以qemu-xxx开头,它可能被包装在Android Studio类别中),然后单击结束任务来终止该进程。