问题描述
云构建Flutter_Android项目。
解决方案
主要步骤截图如下:
bash脚本如下:
cd $EMAS_RUNNER_WORK_DIR
export FLUTTER_STORAGE_BASE_URL="https://mirrors.tuna.tsinghua.edu.cn/flutter"
export PUB_HOSTED_URL="https://mirrors.tuna.tsinghua.edu.cn/dart-pub"
git clone -b stable https://mirrors.tuna.tsinghua.edu.cn/git/flutter-sdk.git
cd flutter-sdk
git checkout -b 3.16.5 3.16.5
export FLUTTER_HOME=$EMAS_RUNNER_WORK_DIR/flutter-sdk
export PATH=$PATH:$FLUTTER_HOME/bin
flutter doctor
cd $EMAS_RUNNER_CODE_DIR
flutter clean
flutter build apk
适用于
云构建
文档内容是否对您有帮助?