Flutter由两部分组成 Flutter引擎和Flutter框架
Flutter引擎由C++编写,在android上通过NDK编译,在ios上通过llvm编译
Flutter框架由dart编写
1.下载jdk8
配置环境变量
2.下载flutter sdk
https://flutter.io/docs/get-started/install/windows
配置环境变量
3.安装android studio
4.安装插件
重启android studio
5.创建工程
6.安装avd
(1)
(2)
(3)
7.签名
flutter doctor --android-licenses
一路Y
8.xcode报
cocoapods not installed
执行
sudo gem install cocoapods
9.Running Gradle task 'assembleDebug'...
修改项目下 build.gradle 和 flutter 安装目录flutter/packages/flutter_tools/gradle/flutter.gradle 两个文件中 buildscript 和allprojects 中的
//google() //jcenter() maven { url 'https://maven.aliyun.com/repository/google' } maven { url 'https://maven.aliyun.com/repository/jcenter' } maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }