android gradle build

原创 2015年11月18日 11:11:09

run cmmand:gradle tasks

输出结果:

:tasks



------------------------------------------------------------
All tasks runnable from root project
------------------------------------------------------------


Android tasks
-------------
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.


Build tasks
-----------
assemble - Assembles all variants of all applications and secondary packages.
assembleAndroidTest - Assembles all the Test applications.
assembleDebug - Assembles all Debug 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.
buildNeeded - Assembles and tests this project and all projects it depends on.
compileDebugAndroidTestSources
compileDebugSources
compileDebugUnitTestSources
compileReleaseSources
compileReleaseUnitTestSources
mockableAndroidJar - Creates a version of android.jar that's suitable for unit tests.


Build Setup tasks
-----------------
init - Initializes a new Gradle build. [incubating]
wrapper - Generates Gradle wrapper files. [incubating]


Help tasks
----------
components - Displays the components produced by root project '6.8.1_git_ant_2'. [incubating]
dependencies - Displays all dependencies declared in root project '6.8.1_git_ant_2'.
dependencyInsight - Displays the insight into a specific dependency in root project '6.8.1_git_ant_2'.
help - Displays a help message.
model - Displays the configuration model of root project '6.8.1_git_ant_2'. [incubating]
projects - Displays the sub-projects of root project '6.8.1_git_ant_2'.
properties - Displays the properties of root project '6.8.1_git_ant_2'.
tasks - Displays the tasks runnable from root project '6.8.1_git_ant_2' (some of the displayed tasks may belong to subprojects).


Install tasks
-------------
installDebug - Installs the Debug build.
installDebugAndroidTest - Installs the android (on device) tests for the Debug build.
uninstallAll - Uninstall all applications.
uninstallDebug - Uninstalls the Debug build.
uninstallDebugAndroidTest - Uninstalls the android (on device) tests for the Debug build.
uninstallRelease - Uninstalls the Release build.


Verification tasks
------------------
check - Runs all checks.
clean - Deletes the build directory.
connectedAndroidTest - Installs and runs instrumentation tests for all flavors on connected devices.
connectedCheck - Runs all device checks on currently connected devices.
connectedDebugAndroidTest - Installs and runs the tests for debug on 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.
lintDebug - Runs lint on the Debug build.
lintRelease - Runs lint on the Release build.
test - Run unit tests for all variants.
testDebugUnitTest - Run unit tests for the debug build.
testReleaseUnitTest - Run unit tests for the release build.


Other tasks
-----------
assembleDefault
jarDebugClasses
jarReleaseClasses


To see all tasks and more detail, run gradle tasks --all


To see more detail about a task, run gradle help --task <task>


BUILD SUCCESSFUL:




相关文章推荐

android.tools.build:gradle: 2.2.2 源码

  • 2017年03月13日 10:43
  • 43.34MB
  • 下载

解决Android Studio新建或导入工程总是重新下载gradle,以至于新建初始化build缓慢的问题

转载请声明出处:http://blog.csdn.net/u013067166/article/details/52155380         导读:Android Studio从0.9发展...

Android Gradle Plugin指南(五)——Build Variants(构建变种版本)

原文地址:http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 6、 Build V...

android studio 多渠道打包,调试正式包,build.gradle解析

1,讲解build.gradle文件。 1.1根目录Android                            1.1.1 defaultConfig是Android的根目录,可以配...

Gradle for Android-高级Build和自定义

既然你已了解Gradle是如何工作、如何创建task和plugin、如何建立持续集成,你可以称自己为专家了。本章包含了一些我们之前没有提到过的提示和技巧,可以使得使用Gradle构建、开发和部署And...

android studio build.gradle配置

android gradle 配置

Android Gradle Build Error:Some file crunching failed, see logs for details解决办法

错误日志:Error:java.lang.RuntimeException: Some file crunching failed, see logs for details     ...

Android项目build.gradle多渠道&完整版

(一)Android配置多渠道,使用的是友盟多渠道配置多渠道,指定渠道处理相关的逻辑 build.gradle配置渠道,指定通用渠道 productFlavors { lo...

深入浅出Android Gradle构建系统(三:build task)

Gradle中常用的一些task的介绍,Gradle Java插件以及Gradle Android插件常用的一些task的介绍...
  • lzyzsd
  • lzyzsd
  • 2015年01月05日 23:07
  • 12975
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:android gradle build
举报原因:
原因补充:

(最多只允许输入30个字)