Gradle Task Failed - FileNotFoundException

Published by DSgames on Wed, 03/07/2018 - 11:51
Status
Fixed
Product/platform
MCreator/Windows
Priority
Normal
Issue description

Executing gradle command: clean build
Microsoft Windows [Version 10.0.16299.248]
(c) 2017 Microsoft Corporation. Wszelkie prawa zastrzeľone.
D:\Pylo\MCreator178>cd forge
D:\Pylo\MCreator178\forge>SET "JAVA_HOME=D:\Pylo\MCreator178\jdk\"
D:\Pylo\MCreator178\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
D:\Pylo\MCreator178\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
D:\Pylo\MCreator178\forge>SET "GRADLE_USER_HOME=C:\Users\dawid\.mcreator\gradle"
D:\Pylo\MCreator178\forge>gradlew -Dorg.gradle.jvmargs="-Xms1000m -Xmx4000m" clean build 
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'forge'.
> java.io.FileNotFoundException: C:\Users\dawid\.mcreator\gradle\caches\modules-2\files-2.1\net.minecraftforge.gradle\ForgeGradle\2.3-SNAPSHOT\5857aa7b0244a4880f931b80c3c6e0ef0e400879\ForgeGradle-2.3-SNAPSHOT.jar (Odmowa dostępu)
* 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: 4.763 secs
D:\Pylo\MCreator178\forge>
Task completed with return code 0 in 5121 milliseconds

Issue comments

Go to C:\Users\dawid\.mcreator\gradle\ and delete caches directory. This should fix this error.



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.