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

 

如果根据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的朋友还是尽快吧;

 

posted @ 2017-12-15 17:07  crash_coder  阅读(8778)  评论(0编辑  收藏