安装flutter
在VSCode中安装flutter extension、flutter组件
国内源下载flutter 3.35.2的SDK,安装,官网下载不了
将flutter安装目录加入环境变量中
D:\program\flutter_sdk\flutter\bin
执行
C:\Windows\System32>flutter --version
Flutter 3.35.2 • channel stable • https://github.com/flutter/flutter.git
安装android studio建立安卓工程
碰到编译失败,则选国内数据源
https://blog.csdn.net/wulong710/article/details/151026743?spm=1001.2014.3001.5501
建立flutter工程
在vscode中 ctrl+shift+P,选择flutter: New Project,建立flutter工程
andrew@wxh MSYS /d/work/flutter/my_first_pro/flutter_application_1
$ tree -L 1
.
├── README.md
├── analysis_options.yaml
├── android
├── flutter_application_1.iml
├── ios
├── lib
├── linux
├── macos
├── pubspec.lock
├── pubspec.yaml
├── test
├── web
└── windows9 directories, 5 files
flutter doctor检查各个平台环境是否完整
C:\Windows\System32>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.35.2, on Microsoft Windows [版本 10.0.22621.4317], locale zh-CN)
[√] Windows Version (11 专业版 64 位, 22H2, 2009)
[√] Android toolchain - develop for Android devices (Android SDK version 36.1.0-rc1)
[√] Chrome - develop for the web
[!] Visual Studio - develop Windows apps (Visual Studio Community 2019 16.11.50)X The current Visual Studio installation is incomplete.Please use Visual Studio Installer to complete the installation or reinstall Visual Studio.
[√] Android Studio (version 2025.1.2)
[√] Connected device (3 available)
[!] Network resourcesX A network error occurred while checking "https://maven.google.com/": 信号灯超时时间已到X An HTTP error occurred while checking "https://github.com/": 信号灯超时时间已到! Doctor found issues in 2 categories.