【问题标题】:In android Studio, how to fix: "The emulator process Pixel_4_XL_API_30 was killed" error在 android Studio 中,如何修复:“模拟器进程 Pixel_4_XL_API_30 被杀死”错误
【发布时间】:2021-03-11 19:20:51
【问题描述】:

我正在使用带有 20H2 更新的 Windows 10 x64。我最近第一次安装了 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 错误,我通过将图形从 software 切换到 automatic

    来修复它(...)
  • 对于快速启动警告,我将 AVD 设置为冷启动

  • 对于 CPU 警告,我在 AVD 高级配置中未选中 多核 CPU

  • 对于qemu.conf错误,根据this,我在admin模式下打开命令提示符,运行:

    echo # > c:\qemu.conf

这消除了错误,但模拟器在 GUI 启动后仍会立即关闭,并给出相同的错误。现在命令提示符输出如下:

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 Level 30 Revision 3。
  • 在工具窗口中启动未选中。
  • 我的硬盘上有超过 1tb 的可用空间
  • 我的 Windows 用户文件夹中没有任何奇怪的字符
  • 我的 AVD 设置为冷启动,图形是自动的,多核 CPU 未选中。
  • SDK 工具:
    • Android SDK 构建工具
    • Android 模拟器 30.2.6
    • Android SDK 平台工具 30.0.5
    • Intel x86 Emulator Accelerator(HAXM 安装程序)7.5.6

【问题讨论】:

    标签: android windows android-studio vulkan


    【解决方案1】:

    原来我的 CPU 太旧且与 HAXM 不兼容。 (尽管通过了 checktool 软件) 我最终使用了 BlueStack 并检查了首选项中的 ADB 选项。

    在 android studio 工作之前启动 bluestack。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-05-21
      • 2020-11-16
      • 2023-04-01
      • 2016-08-18
      相关资源
      最近更新 更多