Skip to content

Android building generate error on gradle 8+ #130

@kilian-v

Description

@kilian-v

same as #119

I've started to get this error when when using gradle 8+.

To reproduce the issue just create a basic flutter project, add rollbar_flutter 1.5.0 and change the distributionUrl on gradle-wrapper.properties to :

distributionUrl=https://services.gradle.org/distributions/gradle-8.3-all.zip
You will see this message when trying to run on Android.

1: Task failed with an exception.

-----------

* Where:

Build file '/Users/username/.pub-cache/hosted/pub.dev/rollbar_flutter-1.5.0/android/build.gradle' line: 107

* What went wrong:

A problem occurred evaluating project ':rollbar_flutter'.

> Could not find method enabled() for arguments [false] on Report xml of type > ### org.gradle.api.reporting.internal.TaskGeneratedSingleFileReport.

* Try:

> Run with --stacktrace option to get the stack trace.

> Run with --info or --debug option to get more log output.

> Run with --scan to get full insights.

> Get more help at https://help.gradle.org.

==============================================================================

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