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 studio 一直卡在Gradle:Build Running的解决办法

在使用AS开发安卓应用程序的时候经常会遇到Gradle build running一直在运行甚至卡死的情况,本文列出了几种解决方法以供参考。...
  • a549742320
  • a549742320
  • 2016年09月13日 13:52
  • 36041

Android Studio 一直卡在Gradle:Build Running的解决办法

网上方法 一 : 我的没找到这一项 需要在android studio 中配置gradle的代理,当然是用goagent了。 打开setting->gradle->Gradle VM Opt...
  • taoerit
  • taoerit
  • 2017年03月04日 11:05
  • 3069

Android_androidstudio_Gradle Build Running特别慢问题

方法一:开启gradle单独的守护进程 在下面的目录下面创建gradle.properties文件: /home//.gradle/ (Linux) /Users//.gra...
  • u013035016
  • u013035016
  • 2016年08月19日 12:58
  • 1267

解决Android Studio Gradle Build Running 特别慢的问题

终于从eclipse逐渐转移到Android Studio上来了。刚开始,真不习惯,感觉又慢,快捷键又和eclipse不一样。但现在越来越多的项目示例等,是android studio格式的,只得慢慢...
  • metababy
  • metababy
  • 2015年11月10日 09:17
  • 74951

android studio gradle build 时中文乱码

方法一 Settings->File Encodings->IDE Encodeing->UTF-8 Settings->File Encodings->Project Encodeing->UT...
  • lqfsharks
  • lqfsharks
  • 2015年05月29日 12:10
  • 1137

Android Studio Gradle Build Running 加载很久问题。

关于Gradle Build Running很慢的问题,网上有很多关于这个问题的解答,如 C:\Users\你的用户名\.gradle目录下新建一个文件名为gradle.properties的文件。 ...
  • cbdcbd1234
  • cbdcbd1234
  • 2016年05月18日 15:06
  • 5589

Android Studio 运行 Gradle Build Running卡死的解决办法

在使用AS开发安卓应用程序的时候经常会遇到Gradle build running一直在运行甚至卡死的情况,解决方法如下: 1、在C:\User\\.gradle 目录下新建一个gradle.pro...
  • u012953557
  • u012953557
  • 2016年02月28日 10:04
  • 3239

ubuntu下gradle build 一直running

ubuntu下gradle build 一直runningPROBLEM在ubuntu1604LTS下用Android studio 进行开发,发现打开之后一直处于gradle build runni...
  • junbujianwpl
  • junbujianwpl
  • 2016年06月05日 09:18
  • 2416

Android Studio Gradle Build Running 特别慢的问题

转自:原文地址:http://blog.isming.me/2015/03/18/android-build-speed-up/,转载请注明出处。  谢谢大神 一.开启gradle单独的守护进程 ...
  • u011889786
  • u011889786
  • 2015年12月28日 11:24
  • 21112

AS Error:java.lang.UnsupportedClassVersionError解决方案

今天通过Terminal 执行命令gradle build等 的时候突然报如下错误。 java.lang.UnsupportedClassVersionError: com/android/bui...
  • u013361668
  • u013361668
  • 2016年11月28日 03:18
  • 1851
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:android gradle build
举报原因:
原因补充:

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