gradle 全量构建命令、清除构建缓存

./gradlew clean
./gradlew stop
./gradlew --profile --offline --no-build-cache --rerun-tasks assembleXXX
(自己用了: ./gradlew --scan --no-build-cache --rerun-tasks assembleRelease)

其中 --rerun-tasks 强制重新执行所有相关task并忽略任何task优化

refer: https://linjiang.tech/2020/02/26/gradle-build/
https://101.dev/t/android-gradle/598

你可能感兴趣的:(gradle 全量构建命令、清除构建缓存)