Stuck on "Setting up Minecraft Forge MDK"

Issue description

I'm trying to use MCreator and it keeps getting stuck on "Setting up Minecraft Forge MDK" with the prompt, "Gradle task failed! Gradle task failed and MCreator was not able to detect the reason for the error. Try to redo your last action and this time it might work..." with the error code GRADLE_BUILD_FAILED [-23].

Here is the log:

Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Build info: MCreator 1.8.0, 64-bit, 8192 MB, Mac OS X, JVM 1.8.0_131
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 download ForgeGradle.jar (net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT)
> Could not close resource ''.
> Premature end of Content-Length delimited message body (expected: 12535717; received: 144506
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Total time: 11.498 secs
Task completed with return code 1 in 12271 milliseconds

My internet connection is fine. I'm going to try to switch directories, but I'm not sure what to do beyond that.

Issue comments

That one occurs when exporting mods. This one occurs when setting up MCreator for the first time. It is not a duplicate.

This also happens to mine! But try finding some files for the ".mcreator" so that you don't need to go throgh this... It's hard to find it in the web! So the easier way is finding someone who can give you or let you copy the files in his/her drive!

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.