簡體   English   中英

在 android Studio 中,如何修復:“The emulator process Pixel_4_XL_API_30 waskilled”錯誤

[英]In android Studio, how to fix: “The emulator process Pixel_4_XL_API_30 was killed” error

我正在使用 Windows 10 x64 和 20H2 更新。 我最近第一次安裝了Android Studio。 我正在嘗試運行模擬器,但在 GUI 中不斷出現以下錯誤:

“模擬器進程 Pixel_4_XL_API_30 被殺死。”

做了很多研究,並嘗試了幾個修復程序,但仍然無法運行模擬器。 我希望獲得有關該錯誤的更多詳細信息,因此我在命令提示符下運行它並得到以下結果:

C:\Users\fmaz008>C:\Users\fmaz008\AppData\Local\Android\Sdk\emulator\emulator.exe -avd Pixel_4_XL_API_30
Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.
emulator: WARNING: Not all modern X86 virtualization features supported, which introduces problems with slowdown when running Android on multicore vCPUs. Setting AVD to run with 1 vCPU core only.
emulator: ERROR: VkCommonOperations.cpp:541: Failed to create Vulkan instance.
Failed to open /qemu.conf, err: 2
HAX is working and emulator runs in fast virt mode.
VCPU shutdown request
deleteSnapshot: for default_boot
  • 對於 Vulkan 錯誤,我通過將圖形從軟件切換到自動來修復它(...)

  • 對於快速啟動警告,我將 AVD 設置為冷啟動

  • 對於 CPU 警告,我在 AVD 高級配置中未選中多核 CPU

  • 對於 qemu.conf 錯誤,根據這個,我在管理員模式下打開命令提示符並運行:

    回聲#> c:\qemu.conf

這消除了錯誤,但模擬器在 GUI 啟動后仍會立即關閉,並給出相同的錯誤。 命令提示符 output 現在如下:

C:\Users\fmaz008>C:\Users\fmaz008\AppData\Local\Android\Sdk\emulator\emulator.exe -avd Pixel_4_XL_API_30 -no-snapshot -cores 1
Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.
HAX is working and emulator runs in fast virt mode.
VCPU shutdown request
emulator: WARNING: Not saving state: RAM not mapped as shared

知道為什么模擬器會一直關閉以及為什么 GUI 說進程被殺死了嗎?

額外細節:

  • 我的 CPU 是舊的 Intel(R) Core(TM) i5 760 @ 2.80GHz,而這台計算機的野獸有 4gb 的內存。
  • SDK 安裝的平台:Android 11.0(R) API 30 級修訂版 3。
  • 未選中在工具 window 中啟動。
  • 我的硬盤上有超過 1tb 的可用空間
  • 我在 windows 上的用戶文件夾中沒有任何奇怪的字符
  • 我的 AVD 設置為冷啟動,圖形是自動的,多核 CPU 未選中。
  • SDK 工具:
    • Android SDK 構建工具
    • Android 仿真器 30.2.6
    • Android SDK 平台工具 30.0.5
    • 英特爾 x86 仿真器加速器(HAXM 安裝程序)7.5.6

原來我的 CPU 太舊且與 HAXM 不兼容。 (盡管通過了檢查工具軟件)我最終使用了 BlueStack 並檢查了首選項中的 ADB 選項。

在 android 工作室工作之前啟動 bluestack。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM