Skip to content

Gradle 8.14 breaks Android Gradle Plugin code coverage support #33389

@gmazzo

Description

@gmazzo

Current Behavior

After bumping to Gradle 8.14, any project using AGP's isTestCoverageEnabled = true flag to enable test coverage breaks.

This issue occurs at different times (configuration or execution) depending on whether you have Configuration Cache enabled, but it fails all the time.

The only workaround I found was to downgrade to 8.13.

Expected Behavior

Build should run smoothly since this is an undocumented breaking change

AGP issue

https://issuetracker.google.com/issues/416200588

Self-contained Reproducer Project

https://github.com/gmazzo/gradle814-agp-coverage-issue

Gradle version

8.14

Build scan URL (optional)

No response

Your Environment (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions