本文主要记录最新版Flutter安卓的方式
环境:MacOS M1
Flutter: 3.7.12
安装步骤
1.下载安装Flutter
2.下载安装AndroidStudio
3.下载安装Xcode,安装cocoapods
环境变量
export ANDROID_HOME="$PATH:$HOME/Library/Android/sdk"
export PATH="$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools"
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export PATH="$PATH:$HOME/bin/flutter/bin"
export PATH="$PATH":"$HOME/bin/flutter/.pub-cache/bin"