如果根据flutter的官网教程,在运行flutter doctor时无法下载依赖,请根据以下步骤
1 export PUB_HOSTED_URL=https://pub.flutter-io.cn
2 export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
3 git clone -b alpha https://github.com/flutter/flutter.git
4 export PATH="$PWD/flutter/bin:$PATH"
5 cd ./flutter
6 flutter doctor

PS:谷歌官方声明只是创建了临时镜像,想安装flutter的朋友还是尽快吧;

在国内运行Flutter配置的正确姿势--如出现Oops; flutter has exited unexpectedly.

 

相关文章:

  • 2022-01-07
  • 2022-01-08
  • 2022-12-23
  • 2021-08-03
  • 2021-12-09
  • 2021-04-20
猜你喜欢
  • 2021-06-13
  • 2022-12-23
  • 2022-01-09
  • 2021-06-10
  • 2022-12-23
  • 2021-10-07
  • 2021-11-23
相关资源
相似解决方案