Gradle Build Failure
See original GitHub issueHey, after updating from 0.33.0 to 0.36.0 I get the following error:
$ ./gradlew build
FAILURE: Build failed with an exception.
* Where:
Build file '/home/tobias/projects/buggy/build.gradle' line: 2
* What went wrong:
Could not apply requested plugin [id: 'com.github.ben-manes.versions', version: '0.36.0'] as it does not provide a plugin with id 'com.github.ben-manes.versions'. This is caused by an incorrect plugin implementation. Please contact the plugin author(s).
> Plugin with id 'com.github.ben-manes.versions' not found.
* 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 889ms
Gradle wrapper version:
------------------------------------------------------------
Gradle 6.7.1
------------------------------------------------------------
Build time: 2020-11-16 17:09:24 UTC
Revision: 2972ff02f3210d2ceed2f1ea880f026acfbab5c0
Kotlin: 1.3.72
Groovy: 2.5.12
Ant: Apache Ant(TM) version 1.10.8 compiled on May 10 2020
JVM: 11.0.9 (Oracle Corporation 11.0.9+0-adhoc..source)
OS: Linux 5.4.78 amd64
To reproduce, you only need the following. This is my build.gradle
plugins {
id 'com.github.ben-manes.versions' version '0.36.0'
}
This is my settings.gradle
rootProject.name = 'buggy'
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Gradle build fails - java - Stack Overflow
When building A , I get the following error: FAILURE: Build failed with an exception. * What went wrong: Could not determine the...
Read more >Reduce build failures and increase build reliability
One of the most common root causes for build failures is a changed upstream binary dependency that is specified to resolve dynamically. Using...
Read more >Gradle build failed - Unity Forum
Gradle build failed · 1. Download it · 2. Add New Folder at C: and name it Gradle · 3. Extract Zip file...
Read more >StackOverflowError in FinalizerGroup.isCanCancel when ...
isCanCancel when handling build failure #21542 ... Where: Build file '/tmp/123/build.gradle' line: 11 * What went wrong: Execution failed ...
Read more >How to solve gradle build failed error | Edureka Community
Make sure you have your jdk updated and the jars you are using are compatible. answered Dec 7, 2018 by ...
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
You are my hero, thank you! I just cleared my
~/.gradle
directory which resolved the issue. Maybe there were some files corrupt, my hard drive had some issues lately.Thank you for your quick responses and your time!
oh I am using gradle wrapper. I use this bash script for convenience which is nicer in multi-module projects.
Do you have any customizations in your
~/.gradle
directory? For example init scripts or properties that might be interfering? Maybe your work disabled the plugin portal for their own, causing it to not resolve correctly for whatever reason?