安装Flutter SDK
参见网址:
1.安装步骤 https://flutter.cn/docs/get-started/install/windows
2.解决doctor报错的网址:这个网址是后找到的,唉,问题挂了好几天,要是早看到就不会了https://blog.csdn.net/weixin_41545048/article/details/128287582
下载flutter_windows_3.10.6-stable.zip并解压D:\resource到此文件
更新 path 环境变量
在开始菜单的搜索功能键入「env」,然后选择 编辑系统环境变量。
点击环境变量,在 用户变量 一栏中,在 Path 这个条目增加 D:\resource\flutter\bin 点确定
win+R => cmd =>where flutter dart
运行 flutter doctor
可根据错误提示,复制错误提示,百度上查询解决即可
例如上边的path/to/sdkmanager --install “cmdline-tools;latest“ 按照下边的网址操作解决了报错的问题https://blog.csdn.net/SharkToping/article/details/130457415
【解决方法】
1、打开Android Studio – Tools – SDK Manager
2、选中Android SDK --> SDK Tools --> Android SDK Command-line Tools(latest) --> Apply
此时又发现点不动,又百度,解决点不了的问题如下
3、这个时候再在终端执行如下的操作,一路Y就可以了。
flutter doctor --android-licenses
在执行一下flutter doctor,发现问题少了一个,这样直到都正确即可
- Visual Studio - develop for Windows
Visual Studio not installed; this is necessary for Windows development:未安装Visual Studio;这是Windows开发所必需的。