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 failed

See original GitHub issue

I have a gradle project, with sub gradle projects.

The root gradle project I have the following

buildscript {	
	repositories {
    maven {
            url "https://plugins.gradle.org/m2/"
        }
    }

    dependencies {
	    classpath ("com.eriwen:gradle-js-plugin:2.14.1")
        classpath ("com.eriwen:gradle-css-plugin:2.14.0")

	}
}

and in sub gradle projects, I have the following:

apply plugin: 'js'
apply plugin: 'css'

It worked before build 0.61 (including 0.61). After I upgrade to 0.62, it stopped working.

Error is

Could not run phased build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-6.3-bin.zip'.
Build file '/home/test/work/git/my-prohect/sub-project/build.gradle' line: 29
A problem occurred evaluating root project 'sub-project'.
Plugin with id 'js' not found.

After I rollback to 0.61, deleted .gradle folder and VScode user workspacgestorage, then the build worked.

Environment
  • Operating System: Linux
  • JDK version: 1.8
  • Visual Studio Code version: 1.45.1
  • Java extension version: 0.62
Steps To Reproduce
  1. [step 1]
  2. [step 2]

[Please attach a sample project reproducing the error] Please attach logs

Current Result

Build failed

Expected Result

Build should not fail

Additional Informations

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:39 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
jsauloucommented, Jun 4, 2020

This worked for me. Subprojects are not updated and the time seems to be comparable to version 0.61.0.

Thanks a lot @snjeza.

0reactions
snjezacommented, Jun 5, 2020

@snjeza I don’t know what’s the difference between your version (https://github.com/snjeza/vscode-test/raw/master/java-0.62.3.vsix) and the latest version I’ve tried from here https://download.jboss.org/jbosstools/jdt.ls/staging/ (which currently is java-0.62.0-2166.vsix), but both seem comparable

@a-st 0.62.3 includes https://github.com/eclipse/eclipse.jdt.ls/pull/1467

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting builds - Gradle User Manual
If gradle --version works, but all of your builds fail with the same error, it is possible there is a problem with one...
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 >
How to fix ''Gradle Build Failed'' on Unity? - Stack Overflow
This is because android.enableR8 is deprecated. To remove it from your gradle.properties file you have to go to Project Settings > Player ...
Read more >
How to fix a gradle build failed problem in Unity - Quora
Goto File -> Invalidate caches / Restart · Shutdown Android Studio · Rename/remove .gradle folder in the user home directory · Restart Android...
Read more >
Gradle build failed with unknown error. Please see logs for the ...
I was using expo build:android but after upgrading to eas-build It is showing me this error : Android build failed: Gradle build failed...
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