Every Gradle task fails

Published by Xeckrom on
Status
Fixed
Issue description

When the mod tries to save or when I try running a client test it says that the task has failed, I checked the console and this same message keeps showing up.

\Downloads\MCreator180\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" clean runClient 
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 \Downloads\MCreator180\forge\build.gradle' line: 10
* What went wrong:
A problem occurred evaluating root project 'forge'.
> 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.
BUILD FAILED

Is there any way to fix this issue? Thank you

Issue comments

I suggest you to go to your user folder, go to .mcreator subdirectory and delete the folder called gradle in it. Then remove all files from installation from MCreator. Then try to install MCreator again.

Make sure you have a reliable internet connection and nothing is obstructing MCreator from accessing the internet too.