[英]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 太舊且與 HAXM 不兼容。 (盡管通過了檢查工具軟件)我最終使用了 BlueStack 並檢查了首選項中的 ADB 選項。
在 android 工作室工作之前啟動 bluestack。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.