error:cannot find symbol

Published by FrBeans on
Issue description

Whenever i try to test my mod it says that error:cannot find symbol .   Why is this happening? How do i fix it? please help guys

Issue comments

When possible, attach your MCreator workspace (or even better a minimal example workspace required to reproduce the bug), game logs (full logs, do not crop them, in text format, not screenshots of logs) from the Console tab or terminal and steps to reproduce the bug in your workspace. Please specify which mod elements to check in your workspace too, if applicable.

Also where it says error:symbol not found is the two custom mobs, with custom models (java models)

Also I am making this for Minecraft forge 1.14, and I am using Mcreator 2020.2

I already watched that video several times. My computer won't let me import the entities with the issues into an isolated workspace.

Executing Gradle task: build
Build info: MCreator 2020.2.13719, 1.14.4, 64-bit, 8152 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
> Configure project :
New Dep: net.minecraftforge:forge:1.14.4-28.2.3_mapped_snapshot_20190719-1.14.3
> Task :compileJava
C:\Users\Sam\MCreatorWorkspaces\clonewar\src\main\java\net\mcreator\clonewar\entity\B1BattleDroidEntity.java:93: error: cannot find symbol
C:\Users\Sam\MCreatorWorkspaces\clonewar\src\main\java\net\mcreator\clonewar\entity\B1BattleDroidEntity.java:93: error: cannot find symbol
         return new MobRenderer(renderManager, new B1_Battle_Droid(), 0.5f) {
                                                   ^
  symbol:   class B1_Battle_Droid
  location: class B1BattleDroidEntity
C:\Users\Sam\MCreatorWorkspaces\clonewar\src\main\java\net\mcreator\clonewar\entity\ProbeDroidEntity.java:78: error: cannot find symbol
C:\Users\Sam\MCreatorWorkspaces\clonewar\src\main\java\net\mcreator\clonewar\entity\ProbeDroidEntity.java:78: error: cannot find symbol
         return new MobRenderer(renderManager, new Probe_Droid(), 0.5f) {
                                                   ^
  symbol:   class Probe_Droid
  location: class ProbeDroidEntity
2 errors
> Task :compileJava FAILED
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.9/userguide/command_line_interface.html#sec:c…
BUILD FAILED in 7s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 14682 milliseconds
 

The comment above this one is the entire console tab

Once again it started saying error:cannot find symbol

Hi, i'm sorry to bother you again but I was working on another project and it keeps saying " your main mod file did not compile properly " , so I went to the knolwedge base and did all the things I could but it still didn't work. The entire console is below this comment.

Executing Gradle task: runClient
Build info: MCreator 2020.2.14217, 1.14.4, 64-bit, 16310 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
> Configure project :
New Dep: net.minecraftforge:forge:1.14.4-28.2.3_mapped_snapshot_20190719-1.14.3
> Task :compileJava FAILED
C:\Users\Dad\MCreatorWorkspaces\bogdimension\src\main\java\net\mcreator\bogdimension\BogDimensionElements.java:84: error: cannot find symbol             BogDimension.PACKET_HANDLER.send(PacketDistributor.PLAYER.with(() -> (ServerPlayerEntity) event.getPlayer()),
                        ^
  symbol:   variable PACKET_HANDLER
  location: class BogDimension
C:\Users\Dad\MCreatorWorkspaces\bogdimension\src\main\java\net\mcreator\bogdimension\BogDimensionElements.java:87: error: cannot find symbol             BogDimension.PACKET_HANDLER.send(PacketDistributor.PLAYER.with(() -> (ServerPlayerEntity) event.getPlayer()),
                        ^
  symbol:   variable PACKET_HANDLER
  location: class BogDimension
C:\Users\Dad\MCreatorWorkspaces\bogdimension\src\main\java\net\mcreator\bogdimension\BogDimensionElements.java:97: error: cannot find symbol             BogDimension.PACKET_HANDLER.send(PacketDistributor.PLAYER.with(() -> (ServerPlayerEntity) event.getPlayer()),
                        ^
  symbol:   variable PACKET_HANDLER
  location: class BogDimension
C:\Users\Dad\MCreatorWorkspaces\bogdimension\src\main\java\net\mcreator\bogdimension\BogDimensionElements.java:104: error: cannot find symbol       BogDimension.PACKET_HANDLER.registerMessage(messageID, messageType, encoder, decoder, messageConsumer);
                  ^
  symbol:   variable PACKET_HANDLER
  location: class BogDimension
C:\Users\Dad\MCreatorWorkspaces\bogdimension\src\main\java\net\mcreator\bogdimension\BogDimensionVariables.java:42: error: cannot find symbol             BogDimension.PACKET_HANDLER.sendToServer(new WorldSavedDataSyncMessage(1, this));
                        ^
  symbol:   variable PACKET_HANDLER
  location: class BogDimension
C:\Users\Dad\MCreatorWorkspaces\bogdimension\src\main\java\net\mcreator\bogdimension\BogDimensionVariables.java:44: error: cannot find symbol             BogDimension.PACKET_HANDLER.send(PacketDistributor.DIMENSION.with(world.dimension::getType), new WorldSavedDataSyncMessage(1, this));
                        ^
  symbol:   variable PACKET_HANDLER
  location: class BogDimension
C:\Users\Dad\MCreatorWorkspaces\bogdimension\src\main\java\net\mcreator\bogdimension\BogDimensionVariables.java:79: error: cannot find symbol             BogDimension.PACKET_HANDLER.sendToServer(new WorldSavedDataSyncMessage(0, this));
                        ^
  symbol:   variable PACKET_HANDLER
  location: class BogDimension
C:\Users\Dad\MCreatorWorkspaces\bogdimension\src\main\java\net\mcreator\bogdimension\BogDimensionVariables.java:81: error: cannot find symbol             BogDimension.PACKET_HANDLER.send(PacketDistributor.ALL.noArg(), new WorldSavedDataSyncMessage(0, this));
                        ^
  symbol:   variable PACKET_HANDLER
  location: class BogDimension
C:\Users\Dad\MCreatorWorkspaces\bogdimension\src\main\java\net\mcreator\bogdimension\BogDimensionVariables.java:131: error: cannot find symbol                BogDimension.PACKET_HANDLER.send(PacketDistributor.ALL.noArg(), message);
                           ^
  symbol:   variable PACKET_HANDLER
  location: class BogDimension
C:\Users\Dad\MCreatorWorkspaces\bogdimension\src\main\java\net\mcreator\bogdimension\BogDimensionVariables.java:134: error: cannot find symbol                BogDimension.PACKET_HANDLER.send(PacketDistributor.DIMENSION.with(world.dimension::getType), message);
                           ^
  symbol:   variable PACKET_HANDLER
  location: class BogDimension
10 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.9/userguide/command_line_interface.html#sec:c…
BUILD FAILED in 2s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 222381 milliseconds