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

解决Android SDK更新站点错误及Flutter模拟器运行冻结问题

解决Android模拟器运行Flutter应用冻结及系统镜像错误的方案

基础排查与修复步骤

  • 清理模拟器残留与错误镜像

    1. 彻底关闭Android Studio及所有模拟器进程
    2. 删除对应目录下的问题镜像与AVD缓存:
      • Windows:C:\Users\<你的用户名>\.android\avd 和 C:\Users\<你的用户名>\AppData\Local\Android\Sdk\system-images下的Automotive、XR镜像文件夹
      • macOS:~/Library/Android/sdk/system-images中的对应镜像文件夹,以及~/.android/avd
      • Linux:~/.android/avd 和 ~/Android/Sdk/system-images下的相关文件夹
    3. 重启Android Studio,重新下载手机版的Android系统镜像(优先选Android 13/14带Google Play的版本,避开Automotive和XR类型)
  • 调整模拟器性能配置
    打开AVD编辑界面:

    • 降低RAM分配(比如从2048MB改为1536MB)
    • 启用Use Host GPU,禁用Enable Vulkan(部分显卡对Vulkan兼容性差)
    • 关闭Advanced标签页中的多窗口、XR相关实验功能
  • 修复Flutter与Android环境关联
    在终端执行以下命令:

    flutter doctor --android-licenses
    

    接受所有许可证后,再执行:

    flutter doctor -v
    

    确认所有Android相关项状态为"OK"

  • 临时绕过Profile安装阶段
    如果始终卡在installing profile,直接运行debug模式跳过:

    flutter run --debug
    

系统镜像错误专项处理

  • 打开SDK Manager,先卸载Android Automotive multi-window System Images和Google XR System Images,再重新安装(确保网络稳定,避免下载中断)
  • 若仍报错,切换SDK Manager的下载源到国内镜像(如阿里云)后重试下载

内容的提问来源于stack exchange,提问作者Mohamed Helal

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.15 10:12:09