MissingMethodExecutionFailed: No signature of method: org.gradle.api.reporting.internal.TaskGeneratedSingleFileReport.enabled() is applicable for argument types: (Boolean) values: [false]

Hello there :wave: ,

I have an empty Android application I created last year.
Intellij proposed to run an AGP upgrade, but failed.
I am now stuck with this error:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> com.android.build.gradle.internal.crash.ExternalApiUsageException: org.codehaus.groovy.runtime.metaclass.MissingMethodExecutionFailed: No signature of method: org.gradle.api.reporting.internal.TaskGeneratedSingleFileReport.enabled() is applicable for argument types: (Boolean) values: [false]

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.

* Get more help at [https://help.gradle.org](https://help.gradle.org/?_gl=1*n5eny0*_ga*MTU5NDMwMjI5Ny4xNjkyNzIzNzI0*_ga_7W7NC6YNPT*MTY5MjcyMzcyNC4xLjEuMTY5MjcyMzgwMi42MC4wLjA.)

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/8.0/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 5s

I’m unable to locate any direct or indirect calls to the enabled reference in my source code or configuration files. Does anyone have any suggestions that might help me resolve this situation?

Thanks.

Did you follow the shown advice?
If you did, the stacktrace should tell you exactly were the error is.
As there is no hint about --scan you probably run with build scan but cut off the link, can you provide it?

Thanks, Björn.
Yes, I cut the link because I was afraid it would display sensitive information.
I made another try today with --stacktrace and here is the result:
Build Scan® | Gradle Cloud Services .

Thanks.

As you can see in the stacktrace, the call comes from https://github.com/arturdm/jacoco-android-gradle-plugin/blob/master/src/main/groovy/com/dicedmelon/gradle/jacoco/android/JacocoAndroidPlugin.groovy#L88.
Here is the according issue, that also suggests that the plugin is unmaintained: Build failing on Gradle 8.0 · Issue #102 · arturdm/jacoco-android-gradle-plugin · GitHub
Another user published a fork, but who knows whether that stays maintained. :slight_smile:

1 Like

Thanks a lot for your help. :pray:
I’ll try the fork then. :person_shrugging:

1 Like