question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not find method beforeSettings() for arguments [...] on build of type org.gradle.invocation.DefaultGradle.

See original GitHub issue

Hi. I just tried adding this action to one of my action files to speed up the pipelines by caching all the downloaded dependencies.

Pretty unexpectedly I get the following error message when any gradle task is invoked.

FAILURE: Build failed with an exception.

* Where:
Initialization script '/home/runner/.gradle/init.gradle' line: 6

* What went wrong:
A problem occurred evaluating initialization script.
> Could not find method beforeSettings() for arguments [init_eiwz59vorj50r19wcr0ymhsxm$_run_closure1@415a204d] on build of type org.gradle.invocation.DefaultGradle.

* 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

BUILD FAILED in 3s
Error: A problem occurred evaluating initialization script.
> Could not find method beforeSettings() for arguments [init_eiwz59vorj50r19wcr0ymhsxm$_run_closure1@415a204d] on build of type org.gradle.invocation.DefaultGradle.

Full log: https://github.com/AuraDevelopmentTeam/InvSync/runs/1623878392?check_suite_focus=true

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Spongmancommented, Jan 28, 2021

ok thank. unfortunately it looks like i’m stuck with an old version for now. this could be the straw that breaks my back to upgrade 😉

0reactions
vlsicommented, Mar 8, 2021

v1.8 (a61b505b54af16ffe2d1d1f2388b46516a8f0f32) should work with Gradle 5

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find method compile() for arguments Gradle
NOTE: I do have the java, maven, nexus, shadow, and rebel plugins applied. When I run my Gradle task, I encounter this error:...
Read more >
Gradle Enterprise Gradle Plugin User Manual
You can add the --scan argument to any Gradle build to publish a build scan. ... They can be added at build time...
Read more >
Could not find method compile() for arguments [com.android ...
In my android studio build gradle is failed i dont know how so then i check the log and i saw this error...
Read more >
Could not create an instance of type org.gradle.invocation ...
buildscript { ext.kotlin_version = '1.3.50' repositories { google() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:7.0.0' ...
Read more >
3. Build Hooks - Gradle Beyond the Basics [Book] - O'Reilly
But your ability to customize a Gradle build doesn't end with plug-ins. ... The kinds of code with which one would advise application...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found