GUI build error

Started by Leums on Fri, 11/13/2020 - 00:07

Topic category: Bugs and solutions

Last seen on 05:30, 14. Nov 2020
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
GUI build error
Fri, 11/13/2020 - 00:07

Hello,

I enable inventory for my block but the build fail anyway. How can I do please?

Executing Gradle task: build 
Build info: MCreator 2020.4.32115, forge-1.15.2, 64-bit, 8000 MB, Windows 10, JVM 1.8.0_252, JAVA_HOME: C:\Program Files\Pylo\MCreator\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\leuma\MCreatorWorkspaces\alcoalcohol_and_drugs_mod\src\main\java\net\mcreator\alcoalcoholanddrugsmod\gui\HotbedGUIGui.java:341: error: unclosed string literal 
                this.font.drawString("--+"", 
                                          ^ 
C:\Users\leuma\MCreatorWorkspaces\alcoalcohol_and_drugs_mod\src\main\java\net\mcreator\alcoalcoholanddrugsmod\gui\HotbedGUIGui.java:342: error: not a statement 
               79, 38, -16777216); 
               ^ 
C:\Users\leuma\MCreatorWorkspaces\alcoalcohol_and_drugs_mod\src\main\java\net\mcreator\alcoalcoholanddrugsmod\gui\HotbedGUIGui.java:342: error: ';' expected 
               79, 38, -16777216); 
                 ^ 
3 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 3s 
1 actionable task: 1 executed 
BUILD FAILED 
Task completed in 5182 milliseconds
Last seen on 05:30, 14. Nov 2020
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
It still does not work
Fri, 11/13/2020 - 10:54

It still does not work

this.font.drawString("--+"\",

Last seen on 05:30, 14. Nov 2020
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I deleted my GUI then I did…
Fri, 11/13/2020 - 15:36

I deleted my GUI then I did it again, and now it works