flutter doctor 信号号超时

报错如下:

复制代码
:\Users\Administrator>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.27.4, on Microsoft Windows [版本 10.0.22631.5189], locale zh-CN)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2019 16.11.13)
[√] Android Studio (version 2024.2)
[√] Connected device (3 available)
[!] Network resources
    X A network error occurred while checking "https://maven.google.com/": 信号灯超时时间已到

尝试直接设置:

SET FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

SET PUB_HOSTED_URL=https://pub.flutter-io.cn

以上只是在本cmd环境生效,需要设置到环境变量中:

收工!

相关推荐
火柴就是我1 天前
从头写一个自己的app
android·前端·flutter
●VON2 天前
Flutter 项目成功运行后,如何正确迁移到 OpenHarmony?常见疑问与跳转失效问题解析
flutter·华为·openharmony·开源鸿蒙
●VON2 天前
Flutter 编译开发 OpenHarmony 全流程实战教程(基于 GitCode 社区项目)
flutter·openharmony·gitcode
消失的旧时光-19432 天前
Flutter 组件:Row / Column
flutter
程序员老刘2 天前
Flutter版本选择指南:3.35稳定,3.38发布 | 2025年11月
flutter·客户端
kirk_wang2 天前
Flutter 3.38和Dart 3.10中最大的更新
flutter
前端小伙计2 天前
Flutter 配置国内镜像,加速项目加载!
flutter
zonda的地盘2 天前
开发 Flutter Plugin 之 初始配置
flutter
消失的旧时光-19433 天前
Flutter TextField 从入门到精通:掌握输入框的完整指南
flutter
wordbaby3 天前
Flutter Form Builder 完全指南:告别 Controller 地狱
前端·flutter