I try everything

Published by Skrins37 on Tue, 04/14/2020 - 19:54
Status
Resolved
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

Hello,

Before i coming here, i try to search by my self but this error continue to pop

the setting up graddle don't work

please help me

thanks

 

(sorry for my english i'm a french)

 

Executing Gradle task: setupDecompWorkspace --refresh-dependencies

Build info: MCreator 2020.2.14217, 1.12.2, 64-bit, 8174 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk

org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.4-bin.zip'.

   at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:55)

   at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:29)

   at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:43)

   at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor.lambda$run$0(DefaultAsyncConsumerActionExecutor.java:57)

   at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)

   at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)

   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

   at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)

   at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.IllegalArgumentException: The specified Gradle distribution 'https://services.gradle.org/distributions/gradle-4.4-bin.zip' does not ….

   at org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution.getToolingImplementationClasspath(DistributionFactory.java:137)

   at org.gradle.tooling.internal.consumer.loader.CachingToolingImplementationLoader.create(CachingToolingImplementationLoader.java:41)

   at org.gradle.tooling.internal.consumer.loader.SynchronizedToolingImplementationLoader.create(SynchronizedToolingImplementationLoader.java:44)

   at org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.onStartAction(LazyConsumerActionExecutor.java:104)

   at org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:86)

   at org.gradle.tooling.internal.consumer.connection.CancellableConsumerActionExecutor.run(CancellableConsumerActionExecutor.java:45)

   at org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(ProgressLoggingConsumerActionExecutor.java:61)

   at org.gradle.tooling.internal.consumer.connection.RethrowingErrorsConsumerActionExecutor.run(RethrowingErrorsConsumerActionExecutor.java:38)

   at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor.lambda$run$0(DefaultAsyncConsumerActionExecutor.java:55)

   ... 6 more

Caused by: java.io.FileNotFoundException: C:\Users\axel\.mcreator\gradle\wrapper\dists\gradle-4.4-bin\bgaq7vklkazwgxox0hdadxbvi\gradle-4.4-bin.zip (Le fichier spécifié est introuvable)

   at java.util.zip.ZipFile.open(Native Method)

   at java.util.zip.ZipFile.<init>(ZipFile.java:225)

   at java.util.zip.ZipFile.<init>(ZipFile.java:155)

   at java.util.zip.ZipFile.<init>(ZipFile.java:169)

   at org.gradle.wrapper.Install.unzip(Install.java:235)

   at org.gradle.wrapper.Install.access$900(Install.java:27)

   at org.gradle.wrapper.Install$1.call(Install.java:81)

   at org.gradle.wrapper.Install$1.call(Install.java:48)

   at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)

   at org.gradle.wrapper.Install.createDist(Install.java:48)

   at org.gradle.tooling.internal.consumer.DistributionInstaller.install(DistributionInstaller.java:72)

   at org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution.getToolingImplementationClasspath(DistributionFactory.java:133)

   ... 14 more

TASK EXECUTION FAILED

Task completed in 2118592 milliseconds

Issue comments

In some cases, Gradle caches that make sure the build process does not take too long can get corrupted. In such a case, go to:

<your user home folder>/.mcreator/gradle

In this folder, there is a folder called caches. Delete this folder and open MCreator again. Next build will take a bit longer as caches need to be rebuilt.

If this is not enough to make things work, delete the entire gradle folder, not just caches and try again.

If even this fails, try to delete the entire <your user home folder>/.mcreator/gradle folder, create a new workspace with the same generator version as the version of the workspace failing, after the setup of this new workspace is done, open your current workspace, and click Build & run -> Reload gradle project and then Build & run -> Regenerate code and build.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.