diff --git a/docs/html/tools/revisions/gradle-plugin.jd b/docs/html/tools/revisions/gradle-plugin.jd index 540bbcdcccb49..6a35cab454059 100644 --- a/docs/html/tools/revisions/gradle-plugin.jd +++ b/docs/html/tools/revisions/gradle-plugin.jd @@ -3,42 +3,249 @@ 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. +
-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.
++ When you update Android Studio, you may receive a prompt to automatically + update the Android Plugin for Gradle to the latest available version. You + can choose to accept the update or manually specify a version based on + your project's build requirements. +
+
+ You can specify the Android Plugin for
+ Gradle version in either the File > Project
+ Structure > Project menu in Android Studio, or
+ the top-level build.gradle file. The plugin version applies to
+ all modules built in that Android Studio project. The following example sets
+ the Android Plugin for Gradle to version 2.0.0 from the
+ build.gradle file:
+
+buildscript {
+ ...
+ dependencies {
+ classpath 'com.android.tools.build:gradle:2.0.0'
+ }
+}
+
+
+ Caution: You should not use dynamic dependencies in version
+ numbers, such as 'com.android.tools.build:gradle:2.+'. Using
+ this feature can cause unexpected version updates and difficulty resolving
+ version differences.
+
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.
++ If the specified plugin version has not been downloaded, Gradle downloads it + the next time you build your project or click Tools > + Android > Sync Project with Gradle Files + from the Android Studio main menu. +
-For a summary of known issues in Android Plugin for Gradle, see http://tools.android.com/knownissues.
++ When you update Android Studio, you may receive a prompt to automatically + update Gradle to the latest available version. You can choose to accept the + update or manually specify a version based on your project's build + requirements. +
+ +
+ You can specify the Gradle version in either the File >
+ Project Structure > Project menu in
+ Android Studio, or by editing the Gradle distribution reference in the
+ gradle/wrapper/gradle-wrapper.properties file. The following
+ example sets the Gradle version to 2.10 in the
+ gradle-wrapper.properties file.
+
+... +distributionUrl = https\://services.gradle.org/distributions/gradle-2.10-all.zip +... ++ +
+ For a summary of known issues in Android Plugin for Gradle, visit the + Android + Tools Project Site. +
Android Plugin for Gradle, Revision 2.0.0 (March 2016)
+
maxProcessCount to control how many slave dex processes can
+ be spawned concurrently. The following code, in the module-level
+ build.gradle file, sets the maximum number of concurrent processes
+ to 4:
+
+android {
+ ...
+ dexOptions {
+ maxProcessCount = 4
+ }
+}
+
+ build.gradle file:
+
+
+android {
+ ...
+ buildTypes {
+ debug {
+ minifyEnabed true
+ useProguard false
+ }
+ release {
+ minifyEnabed true
+ useProguard true // this is a default setting
+ }
+ }
+}
+
+ resources.txt
+ file located in the same folder as the Proguard log files.
+ minSdkVersion is set to 18 or higher, APK signing uses
+ SHA256.
+ + Note: The Android keystore provider no + longer supports + DSA keys on Android 6.0 (API level 23) and higher. +
+ +
+
Android Plugin for Gradle, Revision 1.5.0 (November 2015)
The Android Plugin for Gradle version is specified in the
-File > Project Structure > Project menu and the project-level
-build.gradle file. The plugin version applies to all modules built in that
-Android Studio project. This example sets the Android Plugin for Gradle to version 1.1.0 from the build.gradle file:
-
-...
- dependencies {
- classpath 'com.android.tools.build:gradle:1.1.0'
- }
-...
-
-
-
-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 not using Android Studio, the build process downloads the -latest Android Plugin for Gradle when it runs.
- - - -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 sets the
-Gradle version 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.
\ No newline at end of file + \ No newline at end of file