Gradle Task Failed

Status
Fixed
Product/platform
MCreator/Windows
Priority
Normal
Issue description

I created a mod whit few blocs and item, some food and 2 mobs then i dont know what i did wrong but al crashed.. Now each time i want to open my Mcreator it give me that error and i can just close, copy the log or re-open it but Nothing change, i tryed to uninstall then reinstall, Nothing change i can open Mcreator again.. There is the error log

 

 

   
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Build info: MCreator 1.8.0, 64-bit, 4027 MB, Windows 10, JVM 1.8.0_172
(c) 2018 Microsoft Corporation. Tous droits r‚serv‚s.
C:\Pylo\MCreator180\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" cleanCache clean setupDecompWorkspace --refresh-dependencies 
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project '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
Total time: 27.74 secs
C:\Pylo\MCreator180\forge>
Task completed with return code 0 in 30146 milliseconds
   
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Build info: MCreator 1.8.0, 64-bit, 4027 MB, Windows 10, JVM 1.8.0_172
(c) 2018 Microsoft Corporation. Tous droits r‚serv‚s.
C:\Pylo\MCreator180\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" cleanCache clean setupDecompWorkspace --refresh-dependencies 
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project '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
Total time: 27.379 secs
C:\Pylo\MCreator180\forge>
Task completed with return code 0 in 28641 milliseconds
   
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Build info: MCreator 1.8.0, 64-bit, 4027 MB, Windows 10, JVM 1.8.0_172
(c) 2018 Microsoft Corporation. Tous droits r‚serv‚s.
C:\Pylo\MCreator180\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms2048m -Xmx2048m" cleanCache clean setupDecompWorkspace --refresh-dependencies 
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project '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
Total time: 29.245 secs
C:\Pylo\MCreator180\forge>
Task completed with return code 0 in 30758 milliseconds

Any idea what i can do to fix that ? sorry for my bad English i hope you understand all i said

Issue comments

Go to C:\Users\<your username>\.mcreator\ and delete folder gradle. After you do this, recompile the mod and it will start working again.



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.