FAILURE: Build failed with an exception. (Caused by Missing class for Items from autogenerated codes)

Started by Dregonian on

Topic category: Troubleshooting, bugs, and solutions

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
FAILURE: Build failed with an exception. (Caused by Missing class for Items from autogenerated codes)
Mon, 12/25/2023 - 12:37 (edited)

I tried to add Item, then this error occured:

I tried to:

1. Delete cache folder in gradle folder from .mcreator folder, then it still happens
2. Delete gradle folder by entirely from .mcreator folder, then it still happens

3. Create a new project and I tried to new a sample project to diagnose this bug, and it still happens.

 

Is it a bug or technical problems? (And also add some exception in my Antivirus (Avast))

BUILD FAILED
Task completed in 7 seconds

> Task :compileJava FAILED
C:\Users\...\MCreatorWorkspaces\tutorialmodmcreator\src\main\java\net\mcreator\tutorialmodmcreator\TutorialmodmcreatorMod.java:50: error: package TutorialmodmcreatorModItems does not exist TutorialmodmcreatorModItems.REGISTRY.register(bus);
^
1 error
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
BUILD FAILED in 2s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 5 seconds
Edited by Dregonian on Mon, 12/25/2023 - 12:37
This fault is caused due to…
Mon, 12/25/2023 - 16:20

This fault is caused due to geckolib pugin which does not support this version yet

 

To fix this:

  • Redownload update
  • Make sure you don't use geckolib

 

For the future, I would highly recommend testing snapshots and pre-releases and reporting bugs then and not in the full release

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok, thankyou, the glitch is…
Tue, 12/26/2023 - 01:18

ok, thankyou, the glitch is accruing to me aswell

 

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks, it worked
Tue, 12/26/2023 - 03:32

Thanks, it worked