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.

Gradle Build Failure

See original GitHub issue

Hey, 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:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Gerschtlicommented, Nov 26, 2020

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!

0reactions
ben-manescommented, Nov 26, 2020

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?

Read more comments on GitHub >

github_iconTop 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 >

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