Android Studio Windows 8.1 模拟器:进程已完成,退出代码 -1073741819 (0xC0000005)

发布于 2025-01-14 09:04:33 字数 3287 浏览 2 评论 0原文

我在 Windows 8.1 上运行 Android Studio。当我尝试在虚拟设备上运行简单的 Hello World 时,它会短暂显示,然后退出并显示对话框“AVD [设备] 的模拟器进程已终止。

这是 idea.log 的输出:

INFO - manager.EmulatorProcessHandler - Emulator: C:\Users\[my_username]\AppData\Local\Android\sdk\emulator\emulator.exe -netdelay none -netspeed full -avd Nexus_4_API_22 
INFO - manager.EmulatorProcessHandler - Emulator: WARNING | encryption is off 
INFO - manager.EmulatorProcessHandler - Emulator: 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. 
INFO - manager.EmulatorProcessHandler - 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. 
INFO - manager.EmulatorProcessHandler - Emulator: WARNING | cannot add library vulkan-1.dll: failed 
INFO - manager.EmulatorProcessHandler - Emulator: WARNING | cannot add library vulkan-1.dll: failed 
INFO - manager.EmulatorProcessHandler - Emulator: INFO    | configAndStartRenderer: setting vsync to 60 hz 
INFO - manager.EmulatorProcessHandler - Emulator: INFO    | added library C:\Users\[my_username]\AppData\Local\Android\sdk\emulator\lib64\vulkan\vulkan-1.dll 
INFO - manager.EmulatorProcessHandler - Emulator: HAX is working and emulator runs in fast virt mode. 
INFO - b.PhysicalDeviceChangeListener - emulator-5554 connected 
INFO - manager.EmulatorProcessHandler - Emulator: INFO    | Started GRPC server at 127.0.0.1:8554, security: Local 
INFO - manager.EmulatorProcessHandler - Emulator: INFO    | Advertising in: C:\Users\[my_username]\AppData\Local\Temp\avd\running\pid_1072.ini 
INFO - b.PhysicalDeviceChangeListener - emulator-5554 state changed to ONLINE 
INFO - b.PhysicalDeviceChangeListener - emulator-5554 state changed to OFFLINE 
WARN -            #com.android.ddmlib - Failed to start monitoring emulator-5554 
INFO - manager.EmulatorProcessHandler - Emulator: INFO    | Android emulator version 31.2.8.0 (build_id 8143646) (CL:N/A) 
INFO - manager.EmulatorProcessHandler - Emulator: Process finished with exit code -1073741819 (0xC0000005) 
WARN - manager.EmulatorProcessHandler - Emulator terminated with exit code -1073741819 
INFO - b.PhysicalDeviceChangeListener - emulator-5554 disconnected 

但是,我能够从命令行成功运行它,日志几乎相同:

命令行模拟器

我已经搜索了这些论坛并尝试了一切:

  • 将图形性能选项更改为“软件”
  • 立即冷启动选项
  • 擦除数据选项
  • 删除 .android 文件夹
  • 删除,创建多个不同的虚拟设备
  • 以管理员身份运行
  • 安装,重新安装 Android 模拟器
  • 将 IDE 内存增加到最大(2GB)
  • 重新启动机器

我没有主意了 有谁能够。解决这个问题吗?

Android Studio Bumblebee | 2021.1.1 Patch 2
Build #AI-211.7628.21.2111.8193401, built on February 16, 2022
Runtime version: 11.0.11+9-b1341.60 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 8.1 6.3
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: mobi.hsz.idea.gitignore (4.1.0), org.intellij.plugins.markdown (211.7142.37)

I am running Android Studio on Windows 8.1. When I try to run simple Hello World on a virtual device, it shows briefly then exits with dialog "The emulator process for AVD [device] has terminated.

Here is the output from the idea.log:

INFO - manager.EmulatorProcessHandler - Emulator: C:\Users\[my_username]\AppData\Local\Android\sdk\emulator\emulator.exe -netdelay none -netspeed full -avd Nexus_4_API_22 
INFO - manager.EmulatorProcessHandler - Emulator: WARNING | encryption is off 
INFO - manager.EmulatorProcessHandler - Emulator: 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. 
INFO - manager.EmulatorProcessHandler - 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. 
INFO - manager.EmulatorProcessHandler - Emulator: WARNING | cannot add library vulkan-1.dll: failed 
INFO - manager.EmulatorProcessHandler - Emulator: WARNING | cannot add library vulkan-1.dll: failed 
INFO - manager.EmulatorProcessHandler - Emulator: INFO    | configAndStartRenderer: setting vsync to 60 hz 
INFO - manager.EmulatorProcessHandler - Emulator: INFO    | added library C:\Users\[my_username]\AppData\Local\Android\sdk\emulator\lib64\vulkan\vulkan-1.dll 
INFO - manager.EmulatorProcessHandler - Emulator: HAX is working and emulator runs in fast virt mode. 
INFO - b.PhysicalDeviceChangeListener - emulator-5554 connected 
INFO - manager.EmulatorProcessHandler - Emulator: INFO    | Started GRPC server at 127.0.0.1:8554, security: Local 
INFO - manager.EmulatorProcessHandler - Emulator: INFO    | Advertising in: C:\Users\[my_username]\AppData\Local\Temp\avd\running\pid_1072.ini 
INFO - b.PhysicalDeviceChangeListener - emulator-5554 state changed to ONLINE 
INFO - b.PhysicalDeviceChangeListener - emulator-5554 state changed to OFFLINE 
WARN -            #com.android.ddmlib - Failed to start monitoring emulator-5554 
INFO - manager.EmulatorProcessHandler - Emulator: INFO    | Android emulator version 31.2.8.0 (build_id 8143646) (CL:N/A) 
INFO - manager.EmulatorProcessHandler - Emulator: Process finished with exit code -1073741819 (0xC0000005) 
WARN - manager.EmulatorProcessHandler - Emulator terminated with exit code -1073741819 
INFO - b.PhysicalDeviceChangeListener - emulator-5554 disconnected 

However, I am able to run it from the command line successfully. The log is nearly identical:

command line emulator

I have searched these forums and tried everything:

  • Change Graphics Performance option to "Software"
  • Cold Boot Now option
  • Wipe Data option
  • Delete .android folder
  • Delete, create multiple different virtual devices
  • Run as Administrator
  • Install, reinstall Android Emulator
  • Increase IDE memory to max (2GB)
  • Reboot machine

I am out of ideas. Has anyone been able to solve this?

Android Studio Bumblebee | 2021.1.1 Patch 2
Build #AI-211.7628.21.2111.8193401, built on February 16, 2022
Runtime version: 11.0.11+9-b1341.60 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 8.1 6.3
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: mobi.hsz.idea.gitignore (4.1.0), org.intellij.plugins.markdown (211.7142.37)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文