https://jimbray.xyz/post/using-flutter-in-china/
tip:
全局設(shè)置設(shè)置的好像并沒有起到作用,需要在Android studio的 terminal中輸入這兩句
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
然后
flutter packages get
完成后屿讽,重新run就可以了隅茎。