Gradle setup failed (2020.2 and 2020.1)

Status
Resolved
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

Hello, i have this problem with my gradle startup. A minute after the start i get an error massage saying that it failed to compile the workspace and this is the gradle log:

Executing Gradle task: setupDecompWorkspace --refresh-dependencies
Build info: MCreator 2020.2.12518 EAP (12518), 1.12.2, 64-bit, 15833 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Program Files\Pylo\MCreatorEAP20202b12518\jdk
FAILURE: Build failed with an exception.
* What went wrong:
Could not create service of type FileHasher using GradleUserHomeScopeServices.createCachingFileHasher().
> Timeout waiting to lock file hash cache (C:\Users\Matoooo\.mcreator\gradle\caches\4.4\fileHashes). It is currently in use by another Gradle instance.
  Owner PID: 3828
  Our PID: 744
  Owner Operation: 
  Our operation: 
  Lock file: C:\Users\Matoooo\.mcreator\gradle\caches\4.4\fileHashes\fileHashes.lock
* 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 1m 0s
BUILD FAILED
Task completed in 60657 milliseconds

Also this happens on all versions including other snapshots and MCreator 2020.1.

Thanks in Advance.

Issue comments

  1. Reboot computer
  2. Delete folder C:\Users\Matoooo\.mcreator\gradle\caches
  3. Run the setup again

You are welcome! I am glad I could help :) If you like what we do, consider donating to us to help us keep this project up.



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.