Topic category: Troubleshooting, bugs, and solutions
Already 3 day I struggle with a problem (cannot find symbol) help, what to do in this situation, by the way it's a sword
code error:
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\testenvironmentmod.java:47: error: cannot find symbol
mcreator_swordLich mcreator_3 = new mcreator_swordLich();
^
symbol: class mcreator_swordLich
location: class testenvironmentmod
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\testenvironmentmod.java:47: error: cannot find symbol
mcreator_swordLich mcreator_3 = new mcreator_swordLich();
^
symbol: class mcreator_swordLich
location: class testenvironmentmod
2 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.
A way to fix this problem of yours is to factory reset your MCreator and recreate all you made up till now or to import back in an mcr file of your mod before this error happened. This happens frequently to me as well, so I believe I know how to deal with this problem.
and if the mod is global, and there's a lot of things to be remade?
You can switch to another workspace and back to the first one. This will fix the problem too.
For me worked to delete all listed mod elements and recreate them. You have only one and I had 24. According to your error code you should delete (and probably recreate) mod element "swordLich".