Android Studio-模拟器进程已终止

Android Studio-模拟器进程已终止

每当我启动 AVD 时都会出现此错误:

The emulator process for AVD has terminated.

我已经在 YouTube、Stack Overflow、Superuser 等网站上检查了可能的解决方案,但似乎都没有对我起作用。

我已经检查过以下内容,但没有效果

  • 驱动器中的可用空间
  • HAXM 安装程序也已安装
  • 已经尝试删除 AVD
  • 检查了 api 版本
  • 还有什么..是的,模拟器在工具窗口中启动-选中取消选中完成。

在出现此错误之前,我遇到了错误timed out after 300seconds waiting for emulator to come online。我想我做了一些更改,然后出现了这个新错误。不确定我是否甚至倒退了。

我的操作系统 - Windows 8,Android Studio 版本:Android Studio Electric Eel | 2022.1.1 Patch 1

您可以在此处看到来自 idea.txt 的日志

2023-02-08 17:58:05,095 [3915750]   INFO - Emulator: Pixel 6 API 28 - C:\Users\Admin\AppData\Local\Android\sdk\emulator\emulator.exe -netdelay none -netspeed full -avd Pixel_6_API_28
2023-02-08 17:58:05,142 [3915797]   INFO - Emulator: Pixel 6 API 28 - Android emulator version 31.3.15.0 (build_id 9456632) (CL:N/A)
2023-02-08 17:58:05,157 [3915812]   INFO - Emulator: Pixel 6 API 28 - emulator: INFO: Found systemPath C:\Users\Admin\AppData\Local\Android\sdk\system-images\android-28\google_apis\x86\
2023-02-08 17:58:05,157 [3915812]   INFO - Emulator: Pixel 6 API 28 - emulator: INFO: Found systemPath C:\Users\Admin\AppData\Local\Android\sdk\system-images\android-28\google_apis\x86\
2023-02-08 17:58:05,157 [3915812]   INFO - Emulator: Pixel 6 API 28 - Could not launch 'C:\Users\Admin\AppData\Local\Android\sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe': Invalid argument
2023-02-08 17:58:05,188 [3915843]   INFO - Emulator: Pixel 6 API 28 - Process finished with exit code 22
2023-02-08 17:58:06,146 [3916801]   INFO - #c.a.t.i.a.AvdManagerConnection - C:\Users\Admin\.android\avd\Pixel_6_API_28.avd\hardware-qemu.ini.lock\pid not found for Pixel_6_API_28
2023-02-08 17:58:06,146 [3916801]   INFO - #c.a.t.i.a.AvdManagerConnection - C:\Users\Admin\.android\avd\Pixel_6_API_28.avd\userdata-qemu.img.lock\pid not found for Pixel_6_API_28
2023-02-08 17:58:06,147 [3916802]   WARN - #c.a.t.i.a.AvdManagerConnection - Unable to determine if Pixel_6_API_28 is online, assuming it's not
2023-02-08 17:58:08,375 [3919030]   INFO - #c.i.c.ComponentStoreImpl - Saving appDebuggerSettings took 93 ms, DontShowAgainFeedbackService took 16 ms, FileTypeManager took 16 ms, FindSettings took 15 ms, LafManager took 16 ms, PropertyService took 31 ms, XDebuggerSettings took 15 ms
2023-02-08 17:58:08,563 [3919218]   INFO - #c.i.c.ComponentStoreImpl - Saving Project(name=First Application, containerState=COMPONENT_CREATED, componentStore=E:\Software\Android\FirstApplication)CompilerConfiguration took 16 ms, GradleSettings took 16 ms, RunManager took 15 ms, StructureViewFactory took 16 ms

答案1

我遇到了同样的问题,但解决方案是 MPFlat.dll 是 Android Studio 模拟器的核心部分,您所要做的就是下载 MPFlat.dll 并将其添加到您的模拟器目录中 C:\Users\user\AppData\Local\Android\Sdk\emulator\ 从下载 MPFlat.dll关联

还可以在您的模拟器目录中运行此命令: emulator -netdelay none -netspeed full -avd Pixel_4_API_33 -qt-hide-window -grpc-use-token -idle-grpc-timeout 300

但是将其更改Pixel_4_API_33为你在android studio上创建的模拟器

相关内容