flutter 起步
flutterstart
环境安装
这里以开发
Android
为例
安装 flutter
SDK
安装 Android Studio
下载 Android Studio
==> 百度网盘
首次运行,安装以下组件
- Android SDK Platform, API 34.0.5
- Android SDK Command-line Tools
- Android SDK Build-Tools
- Android SDK Platform-Tools
- Android Emulator
插件安装
- Dart
下载编辑器
下载 VSCode
==> 官网
插件安装
- 搜索
flutter
==> 安装Flutter
flutter
检查环境
- 打开
cmd
命令行 - 输入
flutter doctor
或flutter doctor -v
INFO
Network resources
- X A network error occurred while checking "https://maven.google.com/": 信号灯超时时间已到
- X An HTTP error occurred while checking "https://github.com/": Connection closed before full header was received
- 修改
flutter
配置文件~/packages/flutter_tools/lib/src/http_host_validator.dart
:~
为flutter
安装根目录
java
const String kMaven = 'https://maven.google.com/';
const String kMaven = 'http://maven.aliyun.com/nexus/content/groups/public/';
缺少命令行工具 打开
Android Studio
- 点击
Settings
- -> {
SDK Manager
|Languages & Frameworks
} - ->
Android SDK
- ->
SDK Tools
- ->
Android SDK Command-line Tools
- ->
Apply