flutter项目下执行 flutter run 提示信号灯超时时间已到
1 |
Failed to download https://chrome-infra-packages.appspot.com/dl/flutter/web/canvaskit_bundle/+/8MSYGWVWzrTJIoVL00ZquruZs-weuwLBy1kt1AawJiIC. Ensure you have network connectivity and then try again. SocketException: 信号灯超时时间已到 |
1、问题截图如下:
2、解决办法
终端输入
1 |
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn |
后回车
再次执行flutter run 启动项目即可成功。
注:
1 |
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn |
为设置使用国内镜像
参考链接
Failed to download https://chrome-infra-packages.appspot.com/dl/flutter/web/canvaskit_bundle 超时 解决办法