Flutter uses the running "flutter pub get" command to freeze solution-window practice solution

Use the following mirror sources (not guaranteed to be available, it is best to try them one by one) to configure individual user environment variables ! ! ! Not a system environment variable.

Community main mirror

PUB_HOSTED_URL=https://pub.flutter-io.cn
FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

Shanghai Jiaotong University Linux User Group

PUB_HOSTED_URL=https://dart-pub.mirrors.sjtug.sjtu.edu.cn
FLUTTER_STORAGE_BASE_URL=https://mirrors.sjtug.sjtu.edu.cn

Tsinghua University TUNA Association

PUB_HOSTED_URL=https://mirrors.tuna.tsinghua.edu.cn/dart-pub
FLUTTER_STORAGE_BASE_URL=https://mirrors.tuna.tsinghua.edu.cn/flutter

Mirroring service of TUNA Association

PUB_HOSTED_URL=http://mirrors.cnnic.cn/dart-pub
FLUTTER_STORAGE_BASE_URL=http://mirrors.cnnic.cn/flutter

Tencent Cloud Open Source Mirror Station

PUB_HOSTED_URL=https://mirrors.cloud.tencent.com/dart-pub
FLUTTER_STORAGE_BASE_URL=https://mirrors.cloud.tencent.com/flutter

If the configuration is successful, check the flutter\bin\cache directory, and folders like dart-sdk.old will continue to be generated . If you get stuck and check if there is a faster mirror source, you can comment and provide it.

Guess you like

Origin blog.csdn.net/Mint6/article/details/108633545