Issue #353 reported addDebugLicense() failures on debugOssLicensesTask and was closed as fixed in v0.11.0. However, the fix appears incomplete for projects that use product flavors; the regression persists when the variant combines a flavor name with the debug build type.
Error:
Could not find method addDebugLicense() for arguments [] on task
':app:focusDebugOssLicensesTask' of type
com.google.android.gms.oss.licenses.plugin.LicensesTask.
Project structure:
flavorDimensions "product"
productFlavors {
focus { ... }
klar { ... }
}
// build types: debug, release
// → variants: focusDebug, focusRelease, klarDebug, klarRelease
The task focusDebugOssLicensesTask fails; focusReleaseOssLicensesTask succeeds. Projects without a separate flavor dimension (where variants are just build type names like debug, nightly, release) are not affected, consistent with the original fix only covering the no-flavor case.
Versions: plugin 0.11.0, AGP 8.13.2, Gradle 9.4.1
Issue #353 reported
addDebugLicense()failures ondebugOssLicensesTaskand was closed as fixed in v0.11.0. However, the fix appears incomplete for projects that use product flavors; the regression persists when the variant combines a flavor name with the debug build type.Error:
Project structure:
The task
focusDebugOssLicensesTaskfails;focusReleaseOssLicensesTasksucceeds. Projects without a separate flavor dimension (where variants are just build type names likedebug,nightly,release) are not affected, consistent with the original fix only covering the no-flavor case.Versions: plugin 0.11.0, AGP 8.13.2, Gradle 9.4.1