美文网首页
安装flutter的常见报错

安装flutter的常见报错

作者: HeavenWong | 来源:发表于2023-03-08 10:25 被阅读0次

环境变量配置就不用说了

  • 进入文件~/. bash_profile, 配置下面地址
export FLUTTER_HOME=/Users/用户名/flutter
export PATH=$PATH:$FLUTTER_HOME/bin
export PATH=$PATH:$FLUTTER_HOME/bin/cache/dart-sdk/bin
export PATH="${DART_HOME}:${PATH}"

报错 1.

command not found: flutter

解决

  • 1、指向source

source ~/.bash_profile

  • 2、运行

flutter doctor



报错 2.

HTTP host "https://cloud.google.com/" is not reachable. Reason: An error occurred while checking the HTTP host: Operation timed out

解决



相关文章

网友评论

      本文标题:安装flutter的常见报错

      本文链接:https://www.haomeiwen.com/subject/ksznldtx.html