Android Gradle Plugin 9.5.0

9.5.0
Added 1
  • Experimental automated backup and restore testing, configured through the testOptions.backupTests block, which builds and runs JUnit 5 tests that back up, restore, and verify app data on connected devices.

From Android Gradle Plugin

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

Compatibility

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

Minimum versionDefault versionNotes
Gradle9.6.09.6.0To learn more, see updating Gradle.
SDK Build Tools36.0.036.0.0Install or configure SDK Build Tools.
NDKN/A28.2.13676358Install or configure a different version of the NDK.
JDK1717To learn more, see setting the JDK version.
Automated backup and restore testing

[!WARNING] Experimental: This is an experimental feature. To enable this feature, set android.experimental.testSuiteSupport=true and android.experimental.enableBackupTest=true in your gradle.properties file.

AGP 9.5.0-alpha09 adds automated backup and restore tests to help you catch missing or unusable restored data before you release. Declare a test suite in the testOptions.backupTests block. AGP then builds and runs JUnit 5 tests that add test data to your app on connected devices, back up and restore the app, and check that the data is intact. You can test local, cloud, and device-to-device transfers, and the results appear in an HTML test report. For more information, see Automated backup and restore testing and the backup and restore testing release notes.

Fixed issues
Android Gradle plugin 9.5.0
Fixed Issues
No public issues were marked as fixed in AGP 9.5.0
View original

Upgraded? How did it go?

Discussion