Android Studio - 模擬器進程已終止

Android Studio - 模擬器進程已終止

每當我啟動 AVD 時都會收到此錯誤:

The emulator process for AVD has terminated.

我已經在 YouTube、Stack Overflow、Superuser 等上檢查過可能的解決方案,但似乎沒有一個對我有用。

我已經在下面檢查過但它不起作用

  • 驅動器中的可用空間
  • HAXM 安裝程式也已安裝
  • 已經嘗試刪除 AVD
  • 檢查了api版本
  • 還有什麼..是模擬器在工具視窗中啟動 - 選取取消選取完成。

在此錯誤之前,我收到了 error timed out after 300seconds waiting for emulator to come online。我想我做了一些改變並得到了這個新錯誤。不確定我是否已經倒退了。

我的作業系統 - Windows 8,Android Studio 版本:Android Studio Electric Eel | 2022.1.1 補丁 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 上創建的模擬器

相關內容