Android Gradle plugin 9.2.0

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

Compatibility

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

Minimum version Default version Notes
Gradle 9.4.0-rc-1 9.4.0-rc-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.2.0-alpha02

Fixed Issues
Android Gradle Plugin
AGP 9.0 No androidComponents.onVariant equivalent for applicationVariants.all.mergeAssetsProvider
`*.xml.flat` files contain absolute file paths
R8D8ThreadPoolBuildService not registered
Lint Integration
Android Lint fails with custom lint checks compiled to Java 21 bytecode

Android Gradle plugin 9.2.0-alpha01

Fixed Issues
Android Gradle Plugin
Warn users if they have commonTest but forget withHostTestBuilder
[fused lib - public] OkHttp includes sources
Cannot run androidDeviceTest with manifest placeholders in library (AGP 9.0.0 with com.android.kotlin.multiplatform.library plugin)
AGP should warn if user has src/androidDeviceTest/java with java disabled
Lint
Lint typo in message