新建flutter项目获取不到package踩坑记录
问题描述:
got socket error trying to find package cupertino_icons at https://pub.dary....
pub get failed (69) -- attempting retry 8 in 64 seconds...
问题解决:
我用的是win7,在环境变量 -> 用户变量中添加了这2个变量:
FLUTTER_STORAGE_BASE_URL https://storage.flutter-io.cn PUB_HOSTED_URL https://pub.flutter-io.cn
重新创建项目:
vscode: ctrl+shift+p --> flutter create
命令行: flutter create 项目名(只能小写字母和下划线组合)
相关推荐
csdnYF 2020-11-15
SemiraChen 2020-10-10
YejiaSun 2020-09-27
csdnYF 2020-09-20
FrankAbagnale 2020-09-15
wmd看海 2020-07-27
szintu 2020-07-05
chaoxiao 2020-07-04
wmd看海 2020-06-27
龙衣 2020-06-26
龙衣 2020-06-09
龙衣 2020-06-08
wmd看海 2020-06-04
Samlss 2020-06-04
wmd看海 2020-06-04
csdnYF 2020-05-30
androidgjw 2020-05-28
wmd看海 2020-05-28
wmd看海 2020-05-19