"FAILURE: Build failed with an exception."

Started by pingouin_afk218 on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 12:01, 15. Dec 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"FAILURE: Build failed with an exception."

Hi! i created a GUI and a Block for a 'Smelter", and when i start the build of my project, it fails, here are my logs, i dont know really well java so can you correct errors for me please?

 

Thanks

 

 
Executing Gradle task: runClient 
Build info: MCreator 2020.5.47520, forge-1.15.2, 64-bit, 6091 MB, Windows 10, JVM 1.8.0_265, JAVA_HOME: C:\Users\Hugo\Desktop\MCreator20205\jdk 
> Configure project : 
New Dep: net.minecraftforge:forge:1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1 
> Task :compileJava FAILED 
C:\Users\Hugo\MCreatorWorkspaces\utilcraft\src\main\java\net\mcreator\utilcraft\gui\SmelterGui.java:344: error: unclosed string literal 
                   this.font.drawString("------------------+"", 
                                                             ^ 
C:\Users\Hugo\MCreatorWorkspaces\utilcraft\src\main\java\net\mcreator\utilcraft\gui\SmelterGui.java:345: error: not a statement 
                  41, 39, -12829636); 
                  ^ 
C:\Users\Hugo\MCreatorWorkspaces\utilcraft\src\main\java\net\mcreator\utilcraft\gui\SmelterGui.java:345: error: ';' expected 
                  41, 39, -12829636); 
                    ^ 
C:\Users\Hugo\MCreatorWorkspaces\utilcraft\src\main\java\net\mcreator\utilcraft\gui\SmelterGui.java:352: error: unclosed string literal 
                   this.font.drawString(""+----- Moule", 
                                                      ^ 
C:\Users\Hugo\MCreatorWorkspaces\utilcraft\src\main\java\net\mcreator\utilcraft\gui\SmelterGui.java:353: error: not a statement 
                  94, 20, -12829636); 
                  ^ 
C:\Users\Hugo\MCreatorWorkspaces\utilcraft\src\main\java\net\mcreator\utilcraft\gui\SmelterGui.java:353: error: ';' expected 
                  94, 20, -12829636); 
                    ^ 
6 errors 
FAILURE: Build failed with an exception. 
* What went wrong: 
Execution failed for task ':compileJava'. 
> Compilation failed; see the compiler error output for details. 
* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. 
* Get more help at https://help.gradle.org 
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. 
Use '--warning-mode all' to show the individual deprecation warnings. 
See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#sec:command_line_warnings 
BUILD FAILED in 13s 
1 actionable task: 1 executed 
BUILD FAILED 
Task completed in 17239 milliseconds