Topic category: Help with Minecraft modding (Java Edition)
When I try to make (or open) a fabric based project, I always get this error:
Error: Could not find or load main class worker.org.gradle.process.internal.worker.GradleWorkerMain
Caused by: java.lang.ClassNotFoundExeption: worker.org.gradle.process.internal.worker.GradleWorkerMain
FALIURE: Build failed with an exeption.
* What went wrong:
Execution failed for task ' :genSourcesWithCfr '.
> There was a faliure while executing work items.
>A failure occured while executing net.fabricmc.loom.task.GenerateSourcesTask$DecompileAction
> Failed to run Gradle Worker Daemon
> Process 'Gradle Worker Daemon 1' finished with non-zero exit value 1
I have tried all the basic solutions, none worked: letting MCreator through firewall, deleting gradle files, deleting gradle cache, reinstalling MCreator, reinstalling MCreator to a different place, updating Java, restarting my PC, giving more RAM to gradle, running it as an administrator.
On the other hand, forge works absolutely fine. Gradle works there, but not in fabric
Seems like bug of fabric plugin or fabric, so I would recommend getting in touch with MCreator plugin author