ursus
05/20/2026, 10:10 AMAGP 9 from 8
.. are testReleaseUnitTest now gone?
./gradlew :app:testReleaseUnitTest
Calculating task graph as no cached configuration is available for tasks: :app:testReleaseUnitTest
FAILURE: Build failed with an exception.
* What went wrong:
Cannot locate tasks that match ':app:testReleaseUnitTest' as task 'testReleaseUnitTest' not found in project ':app'.
it's not in check as well .. and this is a plain hello world app
Am I doing it wrong? Or is it obsolete now?mgaetan89
05/20/2026, 10:19 AMandroid.onlyEnableUnitTestForTheTestedBuildType property to false, or set the testBuildType to release.
See https://developer.android.com/build/releases/agp-9-0-0-release-notesursus
05/20/2026, 10:20 AMursus
05/20/2026, 10:22 AMursus
05/20/2026, 10:25 AMrelease specific unit tests, and to be frank I dont really know how does build type come into play for unit tests, it's not like it's running the obfucasted release variant, as this is jvm, right?ursus
05/20/2026, 10:26 AMandroid.onlyEnableUnitTestForTheTestedBuildType=false ?mgaetan89
05/20/2026, 11:21 AMtest<variant>UnitTest. With AGP 9.0 it only creates one task, matching the variant defined by testBuildType.
As far your other questions/remarks, I don't have enough knowledge to answer you properlyEugen Martynov
05/21/2026, 5:26 AMursus
05/21/2026, 9:13 AMEugen Martynov
05/21/2026, 9:34 AMEugen Martynov
05/21/2026, 9:35 AMEugen Martynov
05/21/2026, 9:35 AMursus
05/21/2026, 9:36 AMursus
05/21/2026, 9:37 AMdylan
06/18/2026, 9:43 AMtest<flavor>DebugUnitTest for each flavor/dimension combination