Android Gradle Plugin 7.4.0 (Jan 2023)
Stay organized with collections
Save and categorize content based on your preferences.
Android Gradle Plugin 7.4.0 is a major release that includes a variety of new
features and improvements.
Compatibility
AGP Upgrade Assistant post-upgrade report and rollback functionality
The AGP Upgrade Assistant now includes a post-upgrade report. This report
describes the steps that were completed and if the upgrade was successful or
unsuccessful. It also includes an action to revert changes that were made by
the upgrade assistant, if there are issues building or testing the project
after the upgrade.
Project import runs in parallel
The Studio IDE now imports projects in parallel when you use Gradle 7.4.2 or
higher and Android Gradle plugin 7.2.0 or higher. Specifically, when Android
Studio triggers a Gradle sync, the information that describes projects included
in your build is created in parallel. This usually speeds up the syncing
process, especially for larger projects. Benchmarks show that the time it takes
to build Gradle models for a very large project (with 3,500 Gradle subprojects)
is reduced by 50%, from 10 minutes to 5 minutes.
Android Gradle plugin targets JVM 11 bytecode
Starting with Android Gradle plugin 7.4.0-alpha04, AGP ships wth JVM 11
bytecode. This means that if you compile against AGP, or write custom Lint
checks, you need to start targeting JVM 11 bytecode. One of the ways to do this
is to include the following in your module-level build.gradle
file:
sourceCompatibility = "11"
targetCompatibility = "11"
Patch releases
The following is a list of the patch releases for Android Gradle Plugin
7.4.
Android Gradle Plugin 7.4.1 (February 2023)
This minor update includes the following bug fixes:
Fixed issues |
Migrate from destination property to
outputLocation property to address deprecation warning
and prepare for Gradle 9.0
|
AGP 7.4.0-rc01 breaks Variant API with "Querying the mapped value of
map(provider(java.util.Set)) before task '...' has completed is not supported"
|
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-21 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-21 UTC."],[],[],null,["# Android Gradle Plugin 7.4.0 (Jan 2023)\n\nAndroid Gradle Plugin 7.4.0 is a major release that includes a variety of new\nfeatures and improvements.\n\n### Compatibility\n\n\n| | Minimum version | Default version | Notes |\n|----------------:|:---------------:|:---------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------:|\n| Gradle | 7.5 | 7.5 | To learn more, see [updating Gradle](/build/releases/gradle-plugin?buildsystem=ndk-build#updating-gradle). |\n| SDK Build Tools | 30.0.3 | 30.0.3 | [Install](/studio/intro/update#sdk-manager) or [configure](/tools/releases/build-tools) SDK Build Tools. |\n| NDK | N/A | 23.1.7779620 | [Install](/studio/projects/install-ndk#specific-version) or [configure](/studio/projects/install-ndk#apply-specific-version) a different version of the NDK. |\n| JDK | 11 | 11 | To learn more, see [setting the JDK version](/studio/intro/studio-config#jdk). |\n\n\u003cbr /\u003e\n\n### AGP Upgrade Assistant post-upgrade report and rollback functionality\n\nThe AGP Upgrade Assistant now includes a post-upgrade report. This report\ndescribes the steps that were completed and if the upgrade was successful or\nunsuccessful. It also includes an action to revert changes that were made by\nthe upgrade assistant, if there are issues building or testing the project\nafter the upgrade.\n\n### Project import runs in parallel\n\nThe Studio IDE now imports projects in parallel when you use Gradle 7.4.2 or\nhigher and Android Gradle plugin 7.2.0 or higher. Specifically, when Android\nStudio triggers a Gradle sync, the information that describes projects included\nin your build is created in parallel. This usually speeds up the syncing\nprocess, especially for larger projects. Benchmarks show that the time it takes\nto build Gradle models for a very large project (with 3,500 Gradle subprojects)\nis reduced by 50%, from 10 minutes to 5 minutes.\n\n### Android Gradle plugin targets JVM 11 bytecode\n\nStarting with Android Gradle plugin 7.4.0-alpha04, AGP ships wth JVM 11\nbytecode. This means that if you compile against AGP, or write custom Lint\nchecks, you need to start targeting JVM 11 bytecode. One of the ways to do this\nis to include the following in your module-level `build.gradle` file: \n\n sourceCompatibility = \"11\"\n targetCompatibility = \"11\"\n\n### Patch releases\n\n\u003cbr /\u003e\n\nThe following is a list of the patch releases for Android Gradle Plugin\n7.4.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n#### Android Gradle Plugin 7.4.1 (February 2023)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nThis minor update includes the following bug fixes:\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Fixed issues ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [Issue #242831042](https://issuetracker.google.com/issues/242831042) Migrate from `destination` property to `outputLocation` property to address deprecation warning and prepare for Gradle 9.0 |\n| [Issue #261329823](https://issuetracker.google.com/issues/261329823) AGP 7.4.0-rc01 breaks Variant API with \"Querying the mapped value of `map(provider(java.util.Set))` before task '...' has completed is not supported\" |\n\n\u003cbr /\u003e"]]