Skip to content

v0.11.0: addDebugLicense() regression persists for projects with product flavors #394

@rvandermeulen

Description

@rvandermeulen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions