Flutter 环境配置

官方guide: https://flutter.dev/docs/get-started/install
初始条件要求
Windows PowerShell 5.0
Git for Windows 2.x,

  1. 配置镜像
    FLUTTER_STORAGE_BASE_URL
    https://mirrors.sjtug.sjtu.edu.cn/](https://mirrors.sjtug.sjtu.edu.cn/
    PUB_HOSTED_URL
    https://dart-pub.mirrors.sjtug.sjtu.edu.cn/](https://dart-pub.mirrors.sjtug.sjtu.edu.cn/

  2. flutter SDK下载
    https://flutter.dev/docs/development/tools/sdk/releases

  3. 配置环境变量
    Path 中添加 flutter\bin

  4. 检查git是否可用,不可用将导致运行flutter 没反应

  5. 测试 flutter环境
    cmd 运行 flutter doctor

  6. AndroidStudio 安装Dart Flutter 插件

  7. 升级
    flutter channel 查看版本分支
    flutter channel dev 切换到dev分支
    flutter upgrade 升级

你可能感兴趣的:(Flutter 环境配置)