Skip to content

[Android] Rethrow Could not get unknown property 'android' for project Gradle error #137181

@camsim99

Description

@camsim99

When trying to upgrade the packages in flutter/packages repo to use AGP 8, we encountered this sort of build failure. This indicates that the app using those packages may be too low to be compatible with a newer AGP version. This is blocking the upgrade to AGP 8 at least in flutter/packages.

To unblock the upgrade and also provide better error handling, this Gradle error should be rethrown with a more helpful error message indicating how to fix the issue. To finish unblocking the upgrade, the legacy project used for testing will need its AGP and Gradle versions upgraded (feel free to take over flutter/packages#5032 if I don't end up doing this).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions