当前位置: 首页 > news >正文

flutter工程

安装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.
http://www.dtcms.com/a/360235.html

相关文章:

  • 包的相对导入
  • Android开发简介
  • Redis常见数据类型及应用场景
  • Pytest 插件介绍和开发
  • 极客时间AI 全栈开发实战营毕业总结(2025年8月31日)
  • NCCL-TEST ib集群测试UCX代替方案
  • mit6.031软件构造 笔记 Testing
  • ROI、 binning、下采样功能区别
  • windows编译minicap.so文件
  • 由题构造 嵌入汇编(汇编)
  • NAS Docker 安装N8N
  • 计算机视觉与深度学习 | 双目立体特征提取与匹配算法综述——理论基础、OpenCV实践与MATLAB实现指南
  • 猛犸Lark max 无线麦克风录音爆音问题的解决
  • 【STC库函数】使用芯片自带的EEPROM来保存掉电不丢失的数据
  • 开发常用工具专栏
  • 赵玉平《梁山政治》读书笔记(下部)
  • wifi控制舵机
  • WinExec
  • Nginx反向代理及配置
  • c++ 线程局部存储(Thread-Local Storage,TLS)
  • Langflow Memory 技术深度分析
  • java--浅拷贝深拷贝
  • Introduction to GIS —— Chapter 3(Vector Data Model)
  • 雪花算法生成分布式ID
  • AI 智能体汇总,自动执行任务的“真 Agent”
  • 动态规划入门(三):一些经典动态规划模型
  • 赵玉平《刘备谋略》读书笔记(下部)
  • 小迪自用web笔记22
  • 01背包day35
  • 设计模式 | 常见的设计模式(单例、工厂、代理、适配器、责任链等等)