Most of them come from
Http://developer.android.com/sdk/installing/studio-build.html
Gradle build will generate the default debug version and release version
Gradle assemblerelease no debug version generated, only release version generated
Gradle Assembledebug does not generate release version, only debug version is generated
You can see the meaning of the version in the results shown in the following command.
To view all the tasks, command:
Gradle Tasks
Osdemacbook-pro:app os$ gradle Tasks
: App:tasks
------------------------------------------------------------
All Tasks runnable from Project:app
------------------------------------------------------------
Android Tasks
-------------
androiddependencies -Displays the Android dependencies of the project
Signingreport -Displays the signing info for each variant
Build Tasks
-----------
Assemble -Assembles all variants of all applications and secondary packages.
Assembledebug -Assembles all Debug builds
assemblehiapk -Assembles all hiapk builds
Assemblehiapkdebug -Assembles the Debug build for flavor hiapk
assemblehiapkdebugtest -Assembles the Test build for the Hiapkdebug build
Assemblehiapkrelease -Assembles the Release build for flavor hiapk
Assembleplaystore -Assembles all Playstore builds
Assembleplaystoredebug -Assembles the Debug build for flavor Playstore
assembleplaystoredebugtest -Assembles the Test build for the Playstoredebug build
Assembleplaystorerelease -Assembles the Release build for flavor Playstore
Assemblerele ASE -assembles all Release builds
assembletest -Assembles all the Test applications
Build -Assembles and tests this project.
builddependents -Assembles and tests this project and all projects that depend on it.
buildneeded -Assembles and tests this project and all projects it depends on.
Clean -Deletes the build directory.
Help tasks
----------
Components -Displays the components of produced by Project ': App '.
Dependencies -Displays all dependencies declared in Project ': App '.
Dependencyinsight -Displays the insight into a specific dependency in project ': App '.
Help -Displays a help message
Projects -Displays the sub-projects of project ': App '.
Properties -Displays the properties of Project ': App '.
Tasks -Displays the tasks runnable from Project ': App '.
Install Tasks
-------------
Installhiapkdebug -Installs the Debug build for flavor hiapk
installhiapkdebugtest -Installs the Test build for the Hiapkdebug build
Installhiapkrelease -Installs the Release build for flavor hiapk
Installplaystoredebug -Installs the Debug build for flavor Playstore
installplaystoredebugtest -Installs the Test build for the Playstoredebug build
Installplaystorerelease -Installs the Release build for flavor Playstore
Uninstallall -Uninstall all applications.
Uninstallhiapkdebug -Uninstalls the Debug build for flavor hiapk
uninstallhiapkdebugtest -Uninstalls the Test build for the Hiapkdebug build
Uninstallhiapkrelease -Uninstalls the Release build for flavor hiapk
Uninstallplaystoredebug -Uninstalls the Debug build for flavor Playstore
uninstallplaystoredebugtest -Uninstalls the Test build for the Playstoredebug build
Uninstallplaystorerelease -Uninstalls the Release build for flavor Playstore
Verification Tasks
------------------
Check -Runs all checks.
connectedandroidtest -Installs and runs instrumentation tests for all flavors on connected devices.
Connectedandroidtesthiapkdebug -Installs and runs the tests for Build ' hiapkdebug ' on connected devices.
Connectedandroidtestplaystoredebug -Installs and runs the tests for Build ' playstoredebug ' on connected devices.
Connectedcheck -Runs All device checks on currently connected devices.
deviceandroidtest -Installs and runs instrumentation tests using all Device Providers.
Devicecheck -Runs All device checks using device Providers and Test Servers.
Lint -Runs lint on all variants.
Linthiapkdebug -Runs Lint on the Hiapkdebug build
Linthiapkrelease -Runs Lint on the hiapkrelease build
Lintplaystoredebug -Runs Lint on the Playstoredebug build
Lintplaystorerelease -Runs Lint on the playstorerelease build
Other tasks
-----------
Compilehiapkdebugsources
Compilehiapkdebugtestsources
Compilehiapkreleasesources
Compileplaystoredebugsources
Compileplaystoredebugtestsources
Compileplaystorereleasesources
Rules
-----
Pattern:clean<taskname>: Cleans the output files of a task.
Pattern:build<configurationname>: Assembles the artifacts of a configuration.
Pattern:upload<configurationname>: Assembles and uploads the artifacts belonging to a configuration.
To see all tasks and more detail, run with --all.
BUILD Successful
Total time:8.967 secs
Then, in the build tasks, select the command that requires a separate bulid
There is a Chinese translation version here, Gradle compiled
Detailed Android Gradle only compile Realse version