rollbar-flutter icon indicating copy to clipboard operation
rollbar-flutter copied to clipboard

Android building generate error on gradle 8+

Open kilian-v opened this issue 9 months ago • 0 comments

same as https://github.com/rollbar/rollbar-flutter/issues/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.

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

kilian-v avatar May 17 '24 11:05 kilian-v