[英]How does Gradle build android using plugin?
I understand as Gradle is build tool and android provide plugin for android build. 我了解Gradle是构建工具,而android提供了android构建插件。
When Gradle meet "apply plugin : 'android'" gradle-0.13.3.jar will be downloaded somewhere. 当Gradle遇到“ apply plugin:'android'” gradle-0.13.3.jar将会下载到某个地方。 right?? 对??
But I can not find android plugin anywhere. 但是我在任何地方都找不到android插件。
How does Gradle build android using plugin ?? Gradle如何使用插件构建android ??
apply plugin: "xyz"
applies a plugin that's already on the build class path. apply plugin: "xyz"
应用已在构建类路径上的插件。 To get a third-party plugin such as the Android plugin on the build class path, a plugin dependency has to be specified in a buildscript
block. 要在构建类路径上获取第三方插件(例如Android插件),必须在buildscript
块中指定插件依赖buildscript
。 For details on this, check the Gradle User Guide or the Android Gradle plugin docs . 有关详细信息,请查看Gradle用户指南或Android Gradle插件docs 。
(Gradle 2.1 introduces a new plugins
block that allows to apply plugins available from http://plugins.gradle.org/ without specifying a plugin dependency.) (2.1版引入了一个新的plugins
模块,该模块允许应用http://plugins.gradle.org/中可用的插件,而无需指定插件依赖项。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.