Stay organized with collections
Save and categorize content based on your preferences.
Android Gradle Plugin 3.5.0 (August 2019)
Android Gradle plugin 3.5.0, along with
Android Studio 3.5, is a major release
and a result of Project Marble, which is a focus on improving three main
areas of the Android developer tools: system health, feature polish, and
fixing bugs. Notably,
improving project
build speed was a main focus for this update.
For information about these and other Project Marble updates, read the
Android
Developers blog post or the sections below.
This version of the Android plugin requires the following:
|
Minimum version |
Default version |
Notes |
Gradle |
5.4.1 |
5.4.1 |
To learn more, see updating Gradle. |
SDK Build Tools |
28.0.3 |
28.0.3 |
Install or configure SDK Build Tools. |
3.5.4 (July 2020)
This minor update supports compatibility with new default settings and
features for
package visibility
in Android 11.
See the 4.0.1 release notes for details.
3.5.3 (December 2019)
This minor update supports Android Studio 3.5.3 and includes various bug
fixes and performance improvements.
3.5.2 (November 2019)
This minor update supports Android Studio 3.5.2 and includes various bug
fixes and performance improvements.
To see a list of noteable bug fixes, read the related post on the
Release Updates blog.
3.5.1 (October 2019)
This minor update supports Android Studio 3.5.1 and includes various bug
fixes and performance improvements.
To see a list of noteable bug fixes, read the related post on the
Release Updates blog.
Incremental annotation processing
The Data Binding
annotation processor supports
incremental annotation processing
if you set android.databinding.incremental=true
in your
gradle.properties
file. This optimization results in improved
incremental build performance. For a full list of optimized annotation
processors, refer to the table of incremental annotation
processors.
Additionally, KAPT 1.3.30 and higher also support incremental annotation
processors, which you can enable by including kapt.incremental.apt=true
in
your gradle.properties
file.
Cacheable unit tests
When you enable unit tests to use Android resources, assets, and
manifests by setting
includeAndroidResources
to true
, the Android Gradle plugin generates a test config file
containing absolute paths, which breaks cache relocatability. You can instruct
the plugin to instead generate the test config using relative paths, which
allows the AndroidUnitTest
task to be fully cacheable, by
including the following in your gradle.properties
file:
android.testConfig.useRelativePath = true
Known issues
-
When using Kotlin Gradle plugin 1.3.31 or earlier, you might see the
following warning when building or syncing your project:
WARNING: API 'variant.getPackageLibrary()' is obsolete and has been replaced
with 'variant.getPackageLibraryProvider()'.
To resolve
this issue,
upgrade the plugin to version 1.3.40 or higher.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-08-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-26 UTC."],[],[],null,["\u003cbr /\u003e\n\nAndroid Gradle Plugin 3.5.0 (August 2019)\n\nAndroid Gradle plugin 3.5.0, along with\n[Android Studio 3.5](/studio/releases#3-5-0), is a major release\nand a result of Project Marble, which is a focus on improving three main\nareas of the Android developer tools: system health, feature polish, and\nfixing bugs. Notably,\n[improving project\nbuild speed](https://medium.com/androiddevelopers/improving-build-speed-in-android-studio-3e1425274837) was a main focus for this update.\n\nFor information about these and other Project Marble updates, read the\n[Android\nDevelopers blog post](https://android-developers.googleblog.com/2019/05/android-studio-35-beta.html) or the sections below.\n\nThis version of the Android plugin requires the following:\n\n| | Minimum version | Default version | Notes |\n|----------------:|:---------------:|:---------------:|:----------------------------------------------------------------------------------------------------------:|\n| Gradle | 5.4.1 | 5.4.1 | To learn more, see [updating Gradle](/build/releases/gradle-plugin?buildsystem=ndk-build#updating-gradle). |\n| SDK Build Tools | 28.0.3 | 28.0.3 | [Install](/studio/intro/update#sdk-manager) or [configure](/tools/releases/build-tools) SDK Build Tools. |\n\n**3.5.4 (July 2020)**\n\n\nThis minor update supports compatibility with new default settings and\nfeatures for\n[package visibility\nin Android 11](/about/versions/11/privacy/package-visibility).\n\n\nSee the [4.0.1 release notes](#4.0.1) for details.\n\n**3.5.3 (December 2019)**\n\n\nThis minor update supports Android Studio 3.5.3 and includes various bug\nfixes and performance improvements.\n\n**3.5.2 (November 2019)**\n\n\nThis minor update supports Android Studio 3.5.2 and includes various bug\nfixes and performance improvements.\nTo see a list of noteable bug fixes, read the related post on the\n[Release Updates blog](https://androidstudio.googleblog.com/2019/11/android-studio-352-available.html).\n\n**3.5.1 (October 2019)**\n\n\nThis minor update supports Android Studio 3.5.1 and includes various bug\nfixes and performance improvements.\nTo see a list of noteable bug fixes, read the related post on the\n[Release Updates blog](https://androidstudio.googleblog.com/2019/10/android-studio-351-available.html).\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nIncremental annotation processing\n\nThe [Data Binding](/reference/android/databinding/package-summary)\nannotation processor supports\n[incremental annotation processing](https://docs.gradle.org/current/userguide/java_plugin.html#sec:incremental_annotation_processing)\nif you set `android.databinding.incremental=true` in your\n`gradle.properties` file. This optimization results in improved\nincremental build performance. For a full list of optimized annotation\nprocessors, refer to the table of [incremental annotation\nprocessors](https://docs.gradle.org/current/userguide/java_plugin.html#state_of_support_in_popular_annotation_processors).\n\nAdditionally, KAPT 1.3.30 and higher also support incremental annotation\nprocessors, which you can enable by including `kapt.incremental.apt=true` in\nyour `gradle.properties` file.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nCacheable unit tests\n\nWhen you enable unit tests to use Android resources, assets, and\nmanifests by setting\n[`includeAndroidResources`](https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.TestOptions.UnitTestOptions.html#com.android.build.gradle.internal.dsl.TestOptions.UnitTestOptions:includeAndroidResources)\nto `true`, the Android Gradle plugin generates a test config file\ncontaining absolute paths, which breaks cache relocatability. You can instruct\nthe plugin to instead generate the test config using relative paths, which\nallows the `AndroidUnitTest` task to be fully cacheable, by\nincluding the following in your `gradle.properties` file: \n\n android.testConfig.useRelativePath = true\n \n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nKnown issues\n\n- When using Kotlin Gradle plugin 1.3.31 or earlier, you might see the\n following warning when building or syncing your project:\n\n WARNING: API 'variant.getPackageLibrary()' is obsolete and has been replaced\n with 'variant.getPackageLibraryProvider()'.\n \n \n To resolve\n [this issue](https://youtrack.jetbrains.com/issue/KT-30784),\n upgrade the plugin to version 1.3.40 or higher.\n\n\u003cbr /\u003e"]]