gradle命令

常用命令

gradlew -v 查看版本号

gradlew clean 清除 项目/app/build 文件夹

gradlew build 检查依赖,并编译打包(debug和release包都打出来)

gradlew assembleDebug 编译并只打Debug包

gradlew assembleRelease 编译并只打Release包

gradlew installRelease Release模式打包,并安装

gradlew uninstallRelease 卸载Release包

gradlew -help 查看帮助

gradlew tasks 查看有多少个task

gradlew tasks 查看详细的task