From 3150bb78e683f1e98b9fc9c682e07cedf464eaf3 Mon Sep 17 00:00:00 2001 From: Rich Slogar Date: Wed, 14 Jan 2015 16:04:08 -0800 Subject: docs: android plugin for gradle revisions page Change-Id: I15750eb11f69f9286fdd542c8e5a5e702b1a1255 --- docs/html/tools/revisions/gradle-plugin.jd | 153 +++++++++++++++++++++++++++++ docs/html/tools/tools_toc.cs | 3 + 2 files changed, 156 insertions(+) create mode 100644 docs/html/tools/revisions/gradle-plugin.jd (limited to 'docs/html') diff --git a/docs/html/tools/revisions/gradle-plugin.jd b/docs/html/tools/revisions/gradle-plugin.jd new file mode 100644 index 0000000..23170e1 --- /dev/null +++ b/docs/html/tools/revisions/gradle-plugin.jd @@ -0,0 +1,153 @@ +page.title=Android Plugin for Gradle Release Notes + +@jd:body + +
+ +
+ + +

The Android build system uses the Android Plugin for Gradle to support building Android +applications with the Gradle build toolkit. The plugin runs +independent of Android Studio so the plugin and the Gradle build system can be updated +independently of Android Studio.

+ +

Note: When you update Android Studio or open a project in a +previous version of Android Studio, Android Studio prompts you to automatically update the plugin +and Gradle to the latest available versions. You can choose to accept these updates based +on your project's build requirements.

+ + +

Revisions

+ +

The sections below provide notes about successive releases of +the Android Plugin for Gradle, as denoted by revision number. To determine what revision of the +plugin you are using, check the version declaration in the project-level +build.gradle file.

+ +

For a summary of known issues in Android Plugin for Gradle, see http://tools.android.com/knownissues.

+ + +
+

+ Android Plugin for Gradle, Revision 1.1 (February 2015) +

+ +
+ +
+
Dependencies:
+ +
+
    +
  • Gradle 2.2.1 or higher.
  • +
  • Build Tools 21.1.1 or higher.
  • +
+
+ +
General Notes:
+
+
    +
  • Fixed issue with Gradle build failure when accessing the + extractReleaseAnnotations module. + (Issue 81638).
  • +
  • Fixed debugging issue when displaying method input parameters at breakpoints. + (Issue 82031).
  • +
  • Fixed manifest merger issues when importing libraries with a targetSdkVersion + less than 16.
  • +
  • Fixed density ordering issue when using Android Studio with JDK 8.
  • +
+
+
+
+ + + +
+

+ Android Plugin for Gradle, Revision 1.0 (December 2014) +

+ +
+ +
+
Dependencies:
+ +
+
    +
  • Gradle 2.2.1 or higher.
  • +
  • Build Tools 21.1.1 or higher.
  • +
+
+ +
General Notes:
+
+
    +
  • Initial plugin release.
  • +
+
+
+
+ + + + +

Updating the Android Plugin for Gradle Version

+

The Android Plugin for Gradle version is specified in the +File > Project Structure menu or the project-level +build.gradle file. The plugin version applies to all modules built in that +Android Studio project. This example updates the Android Plugin for Gradle to version 1.1: +

+...
+     dependencies {
+         classpath 'com.android.tools.build:gradle:1.1'
+     }
+...
+
+ + +

Caution: You should not use dynamic dependencies (+) in +version numbers. Using this feature can cause unexpected version updates and difficulty +resolving version differences. +

+ +

If you're building with Gradle but using not Android Studio, the build process downloads the +latest Android Plugin for Gradle plugin when it runs.

+ + + +

Updating the Gradle Version

+ +

Android Studio requires Gradle version 2.2.1 or later. To view and +update the Gradle version, edit the Gradle distribution reference in the +gradle/wrapper/gradle-wrapper.properties file. This example shows the +Android Plugin for Gradle version set to 2.2.1.

+ +
+...
+distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip
+...
+
+ + + + +

For more details about the supported Android Plugin for Gradle properties and syntax, click +the link to the +Plugin Language Reference.

+ + + + + diff --git a/docs/html/tools/tools_toc.cs b/docs/html/tools/tools_toc.cs index ab6c739..62c21a6 100644 --- a/docs/html/tools/tools_toc.cs +++ b/docs/html/tools/tools_toc.cs @@ -249,6 +249,9 @@ class="en">Support Library
  • SDK Build Tools
  • +
  • + Android Plugin for Gradle +
  • SDK Platforms
  • -- cgit v1.1