在执行flutter doctor后,出现Building flutter tool…卡住了,通过配置环境变量来解决:
在bash_profile中增加如下:
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
保存后,再次执行flutter doctor解决上述问题。
在执行flutter doctor后,出现Building flutter tool…卡住了,通过配置环境变量来解决:
在bash_profile中增加如下:
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
保存后,再次执行flutter doctor解决上述问题。