Gradle task failed

Published by kalesuplay on
Status
Duplicate
Issue description

an error crashes "gradle task failed" help fix

 

 

Issue comments

Please open the Console tab after you see this error message and copy the error log and paste it here. Thanks!

   
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Build info: MCreator 1.8.1, 64-bit, 4094 MB, Windows 10 - cmd, JVM 1.8.0_172, JAVA_HOME: C:\Pylo\MCreator181\.\jdk
(c) Љ®аЇ®а жЁп Њ ©Єа®б®дв (Microsoft Corporation), 2018. ‚ᥠЇа ў  § йЁйҐ­л.
C:\Pylo\MCreator181\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" cleanCache clean setupDecompWorkspace --refresh-dependencies 
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'forge'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT.
     Required by:
         :forge:unspecified
> Could not resolve net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT.
> Could not parse POM http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGr…
> Could not read 'http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGr….
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 17.712 secs
Picked up _JAVA_OPTIONS: -Xmx1000m
C:\Pylo\MCreator181\forge>
Task completed with return code 0 in 19563 milliseconds

A few users have reported this issue recently, so it might be a Minecraft Forge server bug. One of the files in the log returns 404 by the forge so we have to wait until this gets resolved on their side. The only thing you can do is to wait until they fix this error on the servers. You could also send them the error too so they can react faster.

If the error persists, you could also try this:

The error you provided can be caused by any of these causes:

  • No internet connection
  • Slow internet connection
  • Firewall (on the computer, router or modem) blocking MCreator
  • AV blocking MCreator
  • ISP blocking MCreator or domains it is trying to access

Try to access one of the URLs in the log from the browser. If you can not access these files there too, it is an issue in general, otherwise, you can assume only MCreator got blocked when trying to access these files.

Executing gradle command: wrapper --gradle-version 4.4
Build info: MCreator 1.8.2, 64-bit, 8127 MB, Windows 10 - cmd, JVM 1.8.0_192, JAVA_HOME: C:\Users\nigai\Desktop\1.12.2\MCreator\MCreator 1.8.2 [1.12.2] Windows 64bit\.\jdk
C:\Users\nigai\Desktop\1.12.2\MCreator\MCreator 
      1.8.2 [1.12.2] Windows 
      64bit\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" wrapper --gradle-version 4.4
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\nigai\Desktop\1.12.2\MCreator\MCreator 1.8.2 [1.12.2] Windows 64bit\forge\build.gradle' line: 24
* What went wrong:
A problem occurred evaluating root project 'forge'.
BUILD FAILED
Total time: 8.517 secs
> No such version exists!
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
C:\Users\nigai\Desktop\1.12.2\MCreator\MCreator 
      1.8.2 [1.12.2] Windows 64bit\forge>
Task completed with return code 0 in 8813 milliseconds

Thank you for answer.  m__m

I'm sorry. I don't undrestnd the above 3.

Cache could not be found.

However,I was able to stert yesterday.

 

Imsorry,Im japanese. im not good at English.

Idk if this is the same issue but i get this message

BOOTING UP GRADLE...
Data loaded, MCreator gradle console ready [ver 1.007]! [boot took 1 milliseconds]
RIGHT click once to copy log to the clipboard or twice to clear the log.
   
Executing gradle command: clean build
Downloading https://services.gradle.org/distributions/gradle-2.7-bin.zip
Exception in thread "main" javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1747)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1708)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1691)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1222)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1199)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:476)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractD…
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.ja…
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnec…
    at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
    at org.gradle.wrapper.Download.download(Download.java:44)
    at org.gradle.wrapper.Install$1.call(Install.java:59)
    at org.gradle.wrapper.Install$1.call(Install.java:46)
    at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
    at org.gradle.wrapper.Install.createDist(Install.java:46)
    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:57)
    at sun.security.validator.Validator.getInstance(Validator.java:161)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:108)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:204)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1188)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:135)
    at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
    at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:943)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1188)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1215)
    ... 13 more
Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:183)
    at java.security.cert.PKIXParameters.<init>(PKIXParameters.java:103)
    at java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:87)
    at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:55)
    ... 24 more
Task completed with return code 1 in 4869 milliseconds

And i thin it may be because the gradle is zipped, however i cant access it in my forge folder thats inside of the mccreator folder. I was considering just sending it to some one else to make the mod for me since i already have the texture and model and texture already downloaded i just cant make it a jar file to become a 1.8.9 mod like how i want it. PLZ help with this error!

I suggest you to open a new ticket for this and specify your OS and MCreator version and paste the whole log, not just a part of it.

   
Executing gradle task: setupDecompWorkspace --refresh-dependencies
Build info: MCreator 2020.1.05419, 1.12.2, 64-bit, 8147 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Program Files (x86)\Pylo\MCreator\jdk
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'infection'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not load module metadata from C:\Users\dvezi\.mcreator\gradle\caches\modules-2\metadata-2.36\descriptors\com.google.guava\guava\18.0\24808588df9b7159a893e6b391f72fa1\descriptor.bin
* 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 19s
BUILD FAILED

BUILD FAILED
   
Executing gradle task: setupDecompWorkspace --refresh-dependencies
Build info: MCreator 2020.1.05419, 1.12.2, 64-bit, 8190 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'mysterymcv2'.
> Could not resolve all files for configuration ':classpath'.
   > Could not resolve net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT.
     Required by:
         project :
      > Could not resolve net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT.
         > Unable to load Maven meta-data from http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGr….
            > Could not get resource 'http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGr…'.
               > Could not GET 'http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGr…
* 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 0s
BUILD FAILED
   
Executing gradle task: setupDecompWorkspace --refresh-dependencies
Build info: MCreator 2020.1.05419, 1.12.2, 64-bit, 8190 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'mysterymcv2'.
> Could not resolve all files for configuration ':classpath'.
   > Could not resolve net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT.
     Required by:
         project :
      > Could not resolve net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT.
         > Unable to load Maven meta-data from http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGr….
            > Could not get resource 'http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGr…'.
               > Could not GET 'http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGr…
* 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 0s
BUILD FAILED
   
Executing gradle task: setupDecompWorkspace --refresh-dependencies
Build info: MCreator 2020.1.05419, 1.12.2, 64-bit, 8190 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'mysterymcv2'.
> Could not resolve all files for configuration ':classpath'.
   > Could not resolve net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT.
     Required by:
         project :
      > Could not resolve net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT.
         > Unable to load Maven meta-data from http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGr….
            > Could not get resource 'http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGr…'.
               > Could not GET 'http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGr…
* 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 0s
BUILD FAILED

Executing Gradle task: setupDecompWorkspace --refresh-dependencies

Build info: MCreator 2020.2.14217, 1.12.2, 64-bit, 8190 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Users\New User\Downloads\MCreator 2020.2 Windows 64bit\MCreator20202\jdk

Etag download for https://files.minecraftforge.net/maven/de/oceanlabs/mcp/versions.json f…

Etag download for http://export.mcpbot.bspk.rs/versions.json failed with code 400

FAILURE: Build failed with an exception.

* Where:

Build file 'C:\Users\New User\MCreatorWorkspaces\project_facility\build.gradle' line: 10

* What went wrong:

A problem occurred evaluating root project 'project_facility'.

> Failed to apply plugin [id 'net.minecraftforge.gradle.forge']

   > java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1

* 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 8s

BUILD FAILED

Task completed in 8504 milliseconds

   > java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1

The solution to this problem and many other problems can be found in our knowledge base: https://mcreator.net/support/knowledgebase Please check the knowledge base before opening a new topic on the issue which has a known fix.