You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Android Studio高版本API模拟器启动失败问题求助

解决Android Studio更新后API 33/34 Pixel模拟器启动崩溃问题

问题核心

更新Android Studio至最新版本后,Pixel 8(API 33)、Pixel 9(API 34)系列AVD启动时提示The emulator process for AVD Pixel_9_Pro_XL_API_34 has terminated,但Pixel 5(API 28)模拟器可正常运行。日志显示两个关键异常:

  1. Vulkan硬件GPU错误:vkGetPhysicalDeviceProperties: Invalid physicalDevice
  2. Quickboot配置文件读取失败:Failed to process .ini file C:\Users\Arsalan\.android\avd\Pixel_9_Pro_XL_API_34.avd\quickbootChoice.ini

针对性解决方案

一、修复Quickboot配置文件问题

快速启动配置文件损坏可能干扰启动流程,可通过以下方式解决:

  • 定位到C:\Users\Arsalan\.android\avd\Pixel_9_Pro_XL_API_34.avd\quickbootChoice.ini,直接删除该文件
  • 或手动创建该文件并写入内容:quickbootChoice=none(强制禁用快速启动)
  • 也可在AVD管理器中编辑目标模拟器,展开「高级设置」,将「Quickboot选项」设置为「使用冷启动」

二、解决Vulkan GPU兼容性问题(崩溃主因)

高API版本模拟器默认启用Vulkan渲染,若GPU驱动不兼容则会导致崩溃,尝试以下方法:

  1. 强制切换至OpenGL渲染
    • 打开AVD管理器,编辑目标模拟器
    • 展开「高级设置」,找到「图形」选项,将默认的「自动」改为「软件 - GLES 2.0」或「硬件 - GLES 2.0」(优先选硬件模式,若仍崩溃则选软件模式)
    • 保存配置后重启模拟器
  2. 更新GPU驱动至最新版本
    根据你的显卡品牌(NVIDIA/AMD/Intel),前往官方网站下载并安装最新驱动程序,旧驱动可能不支持高API模拟器要求的Vulkan版本
  3. 修改AVD配置文件禁用Vulkan
    • 打开AVD的配置文件C:\Users\Arsalan\.android\avd\Pixel_9_Pro_XL_API_34.avd\config.ini
    • 添加或修改以下参数:
      hw.gpu.mode=auto
      emulator.opengles.version=131072
      vulkan=off
      
    • 保存文件后重启模拟器
  4. 降级Android Emulator版本
    • 打开SDK管理器,切换至「SDK工具」标签
    • 取消勾选当前的Android Emulator版本,选择35.1.x系列等稳定旧版本安装
    • 重启Android Studio后重新启动模拟器

三、其他排查项

  • 关闭所有占用GPU的后台程序(如游戏、视频编辑软件)后再启动模拟器
  • 检查Windows虚拟内存设置,确保分页空间不小于物理内存的1.5倍
  • 若物理内存小于8GB,建议将模拟器分配的RAM调低至2048MB(在AVD编辑界面的「内存和存储」中修改)

相关日志

2024-10-19 21:29:50,735 [ 430829]   INFO - Emulator: Pixel 9 Pro XL API 34 - Increasing RAM size to 3072MB
2024-10-19 21:29:50,735 [ 430829]   INFO - Emulator: Pixel 9 Pro XL API 34 - IPv4 server found: 192.168.55.230
2024-10-19 21:29:50,735 [ 430829]   INFO - Emulator: Pixel 9 Pro XL API 34 - Ignore IPv6 address: f0ac:b51d:d001:0:30a7:b51d:d001:0
2024-10-19 21:29:50,735 [ 430829]   INFO - Emulator: Pixel 9 Pro XL API 34 - Ignore IPv6 address: f0ac:b51d:d001:0:30a7:b51d:d001:0
2024-10-19 21:29:50,735 [ 430829]   INFO - Emulator: Pixel 9 Pro XL API 34 - Ignore IPv6 address: f0ac:b51d:d001:0:30a7:b51d:d001:0
2024-10-19 21:29:50,735 [ 430829]   INFO - Emulator: Pixel 9 Pro XL API 34 - Ignore IPv6 address: 50b5:b51d:d001:0:30a7:b51d:d001:0
2024-10-19 21:29:50,735 [ 430829]   INFO - Emulator: Pixel 9 Pro XL API 34 - Ignore IPv6 address: 50b5:b51d:d001:0:30a7:b51d:d001:0
2024-10-19 21:29:50,735 [ 430829]   INFO - Emulator: Pixel 9 Pro XL API 34 - Ignore IPv6 address: 50b5:b51d:d001:0:30a7:b51d:d001:0
2024-10-19 21:29:50,735 [ 430829]   INFO - Emulator: Pixel 9 Pro XL API 34 - Ignore IPv6 address: 68bb:b51d:d001:0:30a7:b51d:d001:0
2024-10-19 21:29:50,735 [ 430829]   INFO - Emulator: Pixel 9 Pro XL API 34 - Ignore IPv6 address: 68bb:b51d:d001:0:30a7:b51d:d001:0
2024-10-19 21:29:50,735 [ 430829]   INFO - Emulator: Pixel 9 Pro XL API 34 - Ignore IPv6 address: 68bb:b51d:d001:0:30a7:b51d:d001:0
2024-10-19 21:29:50,735 [ 430829]   INFO - Emulator: Pixel 9 Pro XL API 34 - Ignore IPv6 address: d8cd:b51d:d001:0:30a7:b51d:d001:0
2024-10-19 21:29:50,735 [ 430829]   INFO - Emulator: Pixel 9 Pro XL API 34 - Ignore IPv6 address: d8cd:b51d:d001:0:30a7:b51d:d001:0
2024-10-19 21:29:50,735 [ 430829]   INFO - Emulator: Pixel 9 Pro XL API 34 - Ignore IPv6 address: d8cd:b51d:d001:0:30a7:b51d:d001:0
2024-10-19 21:29:50,735 [ 430829]   INFO - Emulator: Pixel 9 Pro XL API 34 - Ignore IPv6 address: f8d3:b51d:d001:0:30a7:b51d:d001:0
2024-10-19 21:29:50,735 [ 430829]   INFO - Emulator: Pixel 9 Pro XL API 34 - Ignore IPv6 address: f8d3:b51d:d001:0:30a7:b51d:d001:0
2024-10-19 21:29:50,735 [ 430829]   INFO - Emulator: Pixel 9 Pro XL API 34 - Ignore IPv6 address: f8d3:b51d:d001:0:30a7:b51d:d001:0
2024-10-19 21:29:50,735 [ 430829]   WARN - Emulator: Pixel 9 Pro XL API 34 - Failed to process .ini file C:\Users\Arsalan\.android\avd\..\avd\Pixel_9_Pro_XL_API_34.avd\quickbootChoice.ini for reading.
2024-10-19 21:29:55,851 [ 435945]   INFO - Emulator: Pixel 9 Pro XL API 34 - Critical:
2024-10-19 21:29:55,851 [ 435945]   INFO - Emulator: Pixel 9 Pro XL API 34 - Warning:
2024-10-19 21:29:55,851 [ 435945]   INFO - Emulator: Pixel 9 Pro XL API 34 - Warning:
2024-10-19 21:29:55,851 [ 435945]   INFO - Emulator: Pixel 9 Pro XL API 34 - Warning:
2024-10-19 21:29:55,851 [ 435945]   INFO - Emulator: Pixel 9 Pro XL API 34 - Warning:
2024-10-19 21:29:55,851 [ 435945]   INFO - Emulator: Pixel 9 Pro XL API 34 - Warning:
2024-10-19 21:29:55,851 [ 435945]   INFO - Emulator: Pixel 9 Pro XL API 34 - Warning:
2024-10-19 21:29:55,851 [ 435945]   INFO - Emulator: Pixel 9 Pro XL API 34 - Warning:
2024-10-19 21:29:55,851 [ 435945]   INFO - Emulator: Pixel 9 Pro XL API 34 - Storing crashdata in: C:\Users\Arsalan\AppData\Local\Temp\\AndroidEmulator\emu-crash-35.2.10.db, detection is enabled for process: 7360
2024-10-19 21:29:55,851 [ 435945]   INFO - Emulator: Pixel 9 Pro XL API 34 - library_mode host gpu mode host
2024-10-19 21:29:55,851 [ 435945]   WARN - Emulator: Pixel 9 Pro XL API 34 - emuglConfig_get_vulkan_hardware_gpu: Failed to query physical devices 5
2024-10-19 21:29:55,851 [ 435945]   INFO - Emulator: Pixel 9 Pro XL API 34 - 
2024-10-19 21:29:55,899 [ 435993]   INFO - Emulator: Pixel 9 Pro XL API 34 - ERROR:             vkGetPhysicalDeviceProperties: Invalid physicalDevice [VUID-vkGetPhysicalDeviceProperties-physicalDevice-parameter]
2024-10-19 21:30:00,328 [ 440422]   INFO - Emulator: Pixel 9 Pro XL API 34 - Process finished with exit code -1073740791 (0xC0000409)
2024-10-19 21:30:00,328 [ 440422]   WARN - Emulator: Pixel 9 Pro XL API 34 - Emulator terminated with exit code -1073740791
2024-10-19 21:30:00,643 [ 440737]   WARN - #com.android.sdklib.deviceprovisioner.DeviceAction - The emulator process for AVD Pixel_9_Pro_XL_API_34 has terminated.

内容的提问来源于stack exchange,提问作者Arsalan Shaikh

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.17 03:25:56