当前位置: 首页 > 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.xdnf.cn/news/1413127.html

相关文章:

  • kkfileview自建cdn引入
  • 血缘元数据采集开放标准:OpenLineage Integrations Compatibility Tests Structure
  • 利用 Java 爬虫获取淘宝拍立淘 API 接口数据的实战指南
  • 基于VS平台的QT开发全流程指南
  • 蓝牙AOA助力智慧仓储管理系统
  • MongoDB 从零到入门:实用指南
  • OSWatcher安装和使用(简化版)
  • 其他八股总结
  • Day 01(01): Hadoop与大数据基石
  • LabVIEW电力系统自动化仿真实验教学系统
  • 掩码语言模型(Masked Language Model, MLM)
  • ES集群部署-EFK架构实战
  • 第十八章 ESP32S3 HW_PWM 实验
  • 基于springboot的摄影器材租赁回收系统
  • Docker 容器(二)
  • 大模型面试题剖析:PPO 与 GRPO 强化学习算法核心差异解析
  • 大模型应用总结
  • shell编程之shell脚本基础(未完待续)
  • 飞牛Docker部署免费frp内网穿透
  • 2025.8.18-2025.8.24第35周:备稿演讲有进步
  • 从零构建中间件:Tower 核心设计的来龙去脉
  • AI 编程新玩法:用 yunqi-saas-kit 框架制作小游戏,看广告变现轻松赚钱​
  • 【Linux】linux进程 vs 线程
  • VisionProC#联合编程火花塞距离检测与VisionPro操作
  • Augment 宣布 Auggie CLI正式向所有用户开放
  • 旦旦的农场打卡计划
  • 刷题日记0831
  • Animal fats vs. seed oils
  • 云渲染如何重新定义视觉艺术的边界
  • DOS 程序