使用gradle,更具体地说,使用gradle包装器,您可以通过在从项目的根目录运行时添加信息标记来确切了解每个操作.
将向您展示可从root项目运行的主要任务
./gradlew任务
将显示项目中可用的所有任务
./gradlew任务 – 所有
您可以通过使用找到有关任何任务的更多信息
./gradlew help --task
Android任务
androidDependencies – Displays the Android dependencies of the project.
signingReport – Displays the signing info for each variant.
sourceSets – Prints out all the source sets defined in this project.
构建任务
assemble – Assembles all variants of all applications and secondary packages.
assembleAndroidTest – Assembles all the Test applications.
assembleDebug – Assembles all Debug builds.
assembleDevelopment – Assembles all Development builds.
assembleRelease – Assembles all Release builds.
build – Assembles and tests this project.
buildDependents – Assembles and tests this project and all projects that depend on it.