配置 Flutter 国内镜像 Posted on 2020-03-15 Word count in article: 199 Reading time ≈ 1 mins. 由于网络原因,Flutter 项目获取包依赖时有可能会失败,可通过设置镜像地址解决,新增如下两个环境变量即可: 12export PUB_HOSTED_URL=https://pub.flutter-io.cnexport FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn 参考: Configuring Flutter to use a mirror site