Android Gradle plugin 9.1.0

Android Gradle plugin 9.1 is a minor release that includes a variety of new features and improvements.

Compatibility

The maximum API level that Android Gradle plugin 9.1 supports is API level 36.1. Here is other compatibility info:

Minimum version Default version Notes
Gradle 9.3.1 9.3.1 To learn more, see updating Gradle.
SDK Build Tools 36.0.0 36.0.0 Install or configure SDK Build Tools.
NDK N/A 28.2.13676358 Install or configure a different version of the NDK.
JDK 17 17 To learn more, see setting the JDK version.

Fixed issues

Android Gradle plugin 9.1.0-rc01

Fixed Issues
No public issues were marked as fixed in AGP 9.1.0-rc01

Android Gradle plugin 9.1.0-alpha09

Fixed Issues
Lint
Lint in Otter.2 does not recognize the new compileSdk and targetSdk DSL from AGP 9.0

Android Gradle plugin 9.1.0-alpha08

Fixed Issues
Android Gradle Plugin
Clean Project menu runs a sub-project target instead of just "clean"
Incremental dex desugaring bug in AGP
Config cache: avoid accessing task extensions and conventions at execution time
AGP does not know about canary platforms and complains
Lint Integration
Android Lint using K1 when applied to a java-library project
"Lint check for lint checks" not running

Android Gradle plugin 9.1.0-alpha07

Fixed Issues
Android Gradle Plugin
beforeVariants for KMP needs to be implemented.

Android Gradle plugin 9.1.0-alpha06

Fixed Issues
No public issues were marked as fixed in AGP 9.1.0-alpha06

Android Gradle plugin 9.1.0-alpha05

Fixed Issues
Android Gradle Plugin
AGP 9.0.0-rc01 doesn't resolve Kotlin libraries via kotlin() function

Android Gradle plugin 9.1.0-alpha04

Fixed Issues
Android Gradle Plugin
`*.xml.flat` files contain absolute file paths

Android Gradle plugin 9.1.0-alpha03

Fixed Issues
No public issues were marked as fixed in AGP 9.1.0-alpha03

Android Gradle plugin 9.1.0-alpha02

Fixed Issues
Android Gradle Plugin
Add ability to turn ManifestProcessorTask warnings into errors

Android Gradle plugin 9.1.0-alpha01

Fixed Issues
Android Gradle Plugin
Add ability to turn ManifestProcessorTask warnings into errors
Transforming `OBFUSCATION_MAPPING_FILE` artifact results in outputs of R8 task missing from the output folder