Forge gradle setup problem - No such version exists

Status
Fixed
Issue description

This is the error that I got when it was trying to install the gradle:

Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Microsoft Windows [Version 10.0.16299.192]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Pylo\MCreator177>cd forge
C:\Pylo\MCreator177\forge>SET "JAVA_HOME=C:\Pylo\MCreator177\jdk64\"
C:\Pylo\MCreator177\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Pylo\MCreator177\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Pylo\MCreator177\forge>gradlew -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" cleanCache clean setupDecompWorkspace --refresh-dependencies 
Etag download for http://files.minecraftforge.net/maven/net/minecraftforge/forge/json failed with code 400
FAILURE: Build failed with an exception.
BUILD FAILED
* Where:
Total time: 19.257 secs
Build file 'C:\Pylo\MCreator177\forge\build.gradle' line: 24
* What went wrong:
A problem occurred evaluating root project 'forge'.
> No such version exists!
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
C:\Pylo\MCreator177\forge>
Task completed with return code 0 in 20148 milliseconds

 

Issue comments

It seems like a firewall issue. Try to allow MCreator in the firewall and try to setup MCreator again.

i went  inside the .gradle folder and in it i saw a folder called caches i went in it and i saw a folder called minecraft 

then i deleted the minecraft folder and when i started mcreator it worked fine