简体   繁体   English

Gradle如何使用插件构建Android?

[英]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.

相关问题 带有Gradle Release插件的Android构建 - Android build with Gradle Release plugin 如何使用Gradle Android插件向Build Variant添加特定的包后缀(或packge名称) - How to add a specific package suffix (or packge name) to a Build Variant using gradle Android plugin 如何使用 Android 项目构建修复 Gradle 插件错误? - How to fix the Gradle Plugin Error with Android project build? 使用Gradle构建Android - Build Android Using Gradle Gradle sync失败:'com.android.build.gradle.BasePlugin'没有实现Plugin接口 - Gradle sync failed: 'com.android.build.gradle.BasePlugin' does not implement the Plugin interface Cordova + Android Studio 错误:'com.android.build.gradle.BasePlugin' 没有实现插件接口 - Cordova + Android Studio Error:'com.android.build.gradle.BasePlugin' does not implement the Plugin interface Android Gradle Plugin 3.0构建错误 - Android Gradle Plugin 3.0 Build Error 在自动化的Android构建中找不到插件gradle错误 - Plugin not found gradle errors in automated Android build 使用deployGate gradle插件构建Android Studio项目 - Android Studio project build with deployGate gradle plugin Gradle 构建:Java 插件与 Android 插件不兼容 - Gradle build: Java plugin not compatible with Android plugins
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM