# 安装dart稳定版
https://gekorm.com/dart-windows/
dart --version
# vscode安装dart插件
dart
code runner
可在vscode运行dart程序
# vscode安装flutter插件
flutter
flutter widget snippets
# flutter安装
https://docs.flutter.dev/development/tools/sdk/releases#windows
解压后配置环境变量
flutter --version
# Flutter国内镜像配置
https://flutter-io.cn/
根据提示配置环境变量
控制台运行 flutter doctor检测环境配置
# 模拟器使用
夜神模拟器
不使用SDK自带的模拟器
D:\Users\Administrator\AppData\Local\Android\Sdk\platform-tools\adb.exe connect 127.0.0.1:62001
D:\Program Files\Nox\bin\nox_adb.exe connect 127.0.0.1:62001
# 控制台报错
adb server version (41) doesn't match this client (36); killing...
查看5037端口占用情况,被SDKadb占用了,两adb版本不一致,将SDK adb复制到nox\bin 里面,名字改为nox_adb.exe,复制一份为adb.exe
# flutter命令
flutter clean
flutter run 项目运行命令
flutter pub get 获取镜像依赖