Could not find method beforeSettings() for arguments [...] on build of type org.gradle.invocation.DefaultGradle.
See original GitHub issueHi. 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:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 😉
v1.8
(a61b505b54af16ffe2d1d1f2388b46516a8f0f32
) should work with Gradle 5