Gradle build failed
See original GitHub issueI 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
- [step 1]
- [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:
- Created 3 years ago
- Comments:39 (14 by maintainers)
Top 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 >
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
This worked for me. Subprojects are not updated and the time seems to be comparable to version 0.61.0.
Thanks a lot @snjeza.
@a-st 0.62.3 includes https://github.com/eclipse/eclipse.jdt.ls/pull/1467