flutter环境配置

1.下载sdk并解压
https://docs.flutter.dev/development/tools/sdk/releases#windows
2.环境变量配置
系统环境变量path编辑,加入[;D:\flutter\flutter\bin]
用户环境变量配置国内镜像源,新建[PUB_HOSTED_URL]=[https://pub.flutter-io.cn]和[FLUTTER_STORAGE_BASE_URL]=[https://storage.flutter-io.cn]
3.重启电脑
4.运行命令检查配置是否完整,flutter doctor
5.安卓下载插件flutter和dart
6.安卓studio配置dart sdk
D:\flutter\flutter\bin\cache\dart-sdk
配置flutter sdk
D:\flutter\flutter

你可能感兴趣的:(工具,flutter)