Itcan happen that you get gradle errors during the setup of MCreator or even later when suddenly builds stop working. Most of these errors are related to file permissions, firewalls, and other OS elements that block MCreator from operating properly. To find the solution for your case, check the error log in the Console tab and look for error messages similar to the titles on this page and if you find one of these, go to the section under this title to look for the solution.
The most common errors from Gradle are caused by firewalls or antivirus software. If you have any issues, we recommend you to temporarily turn off this software and try again. If this works, add MCreator as an exception to your firewall or antivirus or reconfigure the software properly to not block programs such as MCreator.
In some cases of unstable or slow connections, running the setup multiple times and when it fails with errors related to the internet connection (timeout errors, failed to connect, failed to GET, HEAD, ...) clicking re-run the setup multiple times resolves the issue as eventually, all files get properly downloaded.
Keep in mind this will not only reduce the amount of problems with Gradle, but will also increase the build and workspace setup times significantly. Keep in mind that this will make those folders not be scanned so make sure to check them manually with manual scan from time to time to be sure there are no threats located in those folders.
You can also add folder exclusions using the command line if you prefer this approach. Keep in mind this approach is more advanced and complex. Run the command line as administrator and use the following command with the selected folder path:
In some cases, Gradle caches that make sure the build process does not take too long can get corrupted. In such a case, restart the computer first. Then (without opening MCreator after the reboot), go to:
In this folder, there is a folder called caches. Delete this folder and open MCreator again. The next build will take a bit longer as caches need to be rebuilt. If you can not delete all files in this folder (which is necessary), reboot the computer first to remove any potential file locks.
The most common cause for this issue is Antivirus with any advanced SSL or HTTPS security turned on. Such Antiviruses can alter certificates and cause Gradle to no properly recognize them. This can be caused by a firewall too.
This issue is resolved by The second most common solution described above (but delete the entire gradle folder, not just the folder caches in it). You might need to restart your computer before opening MCreator again too.
In this folder, there is a folder called native. Delete this folder and open MCreator again. If this does not help, try reinstalling Minecraft on your computer and check your graphics card drivers (update them if there are updates).
In some cases, links to the libraries from the Gradle build system can get lost and MCreator builds will stop working. Especially some mod elements such as GUIs and dimensions are prone to this happening. When this happens, the following solution usually fixes this error:
So here's the error I get when I recompile my workspace, a box pops up saying that gradle failed to build the app with a Null Pointer Exception, And when I run the gradle command build I get this popup message:
From this I was able to deduce that the error was with the source file that contained MCreators global variable listing, because I don't have access to this file or even know how to properly fix it, I came here.
Every opening braces needs one closing braces . The only purpose of the extra braces is to provide scope-limit . If you put curly braces in the wrong places or omit curly braces where the braces should be, your program probably won't work at all. Moreover, If you don't indent lines of code in an informative manner , your program will still work correctly, but neither you nor any other programmer will be able to figure out what you were thinking when you wrote the code. The error Reached End of File While Parsing is a compiler error and almost always means that your curly parenthesis are not ending completely or maybe there could be extra parenthesis in the end.
I launched MCreator(2019.5) then created a workspace.Everything is fine.But when I started to set up gradle project, Something goes wrong.It said MCreater Setup Failed.Then I tried again but it was not worked.I wonder why and I don't know whether it because of my country(China.).Here is the error
Caused
by: javax.net.ssl.SSLHandshakeException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
Caused
by: sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
Hello, I am using MCreator version 1.8.0. I keep getting the "Failed to load dependency entity for procedure" error. Here is what it says in the console:[15:51:39] [Server thread/INFO] [STDERR]: [mod.mcreator.mcreator_myplantPlanted:executeProcedure:24 Failed to load dependency entity for procedure myplantPlanted!
Seeing the amount of people that have the same issue, my guess is that the server Forge downloads its metadata from, is down. It'll soon be fixed or it has been fixed already by the time I post this comment.
OK.. I too am having the same issue... ERROR CODE GRADLE_NO_INTERNET [-21] indicates that the internet connection is needed to complete some tasks.. I have Internet with a very good connection -- I disabled the antivirus AND Firewall before starting the program and still receive this error.
The problem is that Minecraft Forge servers can't serve the amount of the requests they are getting right now most likely. Try to use/install it again and if still does not work, try it later when the servers won't be so overwhelmed. I am sorry that this is happening but there is not much I can do about this.
I did uninstall and reinstall, each time doing something different... the last time I received a more promising error --- instead of a flat out error I received that the Gradle task failed! and MCreator was not able to detect the reason for the error. Please redo your last action..
Hello. I downloaded the latest version of mcreator and started making a mod for Minecraft forge version 1.19.4. An error occurred seconds after starting to create the workspace and the operation was aborted. I've been trying to solve this problem for 4 and a half hours. I uninstalled the antivirus, disabled Windows Defender, reset my computer three times, and thoroughly searched all websites on the internet. I also watched all the videos on YouTube but nothing could fix the problem.
I went through all the source code files and this error I got is different from all the errors shown on the internet. I searched all possible source code folders of mcreator. There are no faulty code files. Obviously, there is no file that can cause an error. Also, there is no file created incorrectly or placed in the wrong location.
I've already looked at the knowledge base. But the problem I suspect the most is my internet. Because my secure internet has a very ridiculous algorithm. It doesn't allow VPN connection, it doesn't get into minecraft servers, it doesn't even allow Steam. I added mcreator in the inbound and outbound rules from the windows control panel so that it can pass the wall.
Hey I'm completely new to mcreator here and I literally have no clue of what I'm doing exactly, I've just been following a tutorial on youtube (Seems to be a little bit outdated) but pretty much I'm wanting to make a mushroom biome for 1.20.1, (Sadly I'm wanting it to be underground but its not avalible for fabric) so I'm just experimenting for the surface part of the biome, Anyways it started to pop up with the following message after I applied the first custom texture to the wood pack
"One or more of your main mod files did not compile properly
This is usually caused by inconsistencies in the mod code during builds.
MCreator can solve this issue for you by regenerating entire mod's code.
If you have locked mod elements or mod base files, they can cause this error too.
Click Regenerate code button to proceed with this action"
Then of course there's regenerate code and ignore error, Which everytime I regenerate it didnt work so I originally just ignored the error..
Once I got to the part where i had my trees and everything from the wood group button, I added a biome element, And customized that to the way I wanted the biome to generate, and once I did I tried to click the play button and says the same issue up above there, At the bottom would be the console logs (I may censor some of it)
So what am I doing wrong here? I'm lost and there hasnt been up to date tutorials?
Also quick thing, What I have bolded at the bottom of the console is stuff I dont exactly understand myself, so as stated I would really apricate some help
Executing Gradle task: runClient
Build info: MCreator 2023.3.36712, fabric-1.20.1, 64-bit, 16307 MB, Windows 11, JVM 17.0.7, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2023-09-26-04:41:14
> Configure project :
Fabric Loom: 1.2.7
> Task :compileJava FAILED
G:\MyMinecraftMods\TakisBiomes\src\main\java\net\mcreator\takisbiomes\init\TakisBiomesModBiomes.java:7: error: package terrablender.api does not exist import terrablender.api.SurfaceRuleManager;
^
G:\MyMinecraftMods\TakisBiomes\src\main\java\net\mcreator\takisbiomes\init\TakisBiomesModBiomes.java:8: error: package terrablender.api does not exist import terrablender.api.Regions;
^
G:\MyMinecraftMods\TakisBiomes\src\main\java\net\mcreator\takisbiomes\world\biome\regions\MushyCavesRegion.java:4: error: package terrablender.api does not exist import terrablender.api.RegionType;
^
G:\MyMinecraftMods\TakisBiomes\src\main\java\net\mcreator\takisbiomes\world\biome\regions\MushyCavesRegion.java:5: error: package terrablender.api does not exist import terrablender.api.Region;
^
G:\MyMinecraftMods\TakisBiomes\src\main\java\net\mcreator\takisbiomes\world\biome\regions\MushyCavesRegion.java:19: error: cannot find symbol public class MushyCavesRegion extends Region {
^
symbol: class Region
5 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
BUILD FAILED in 2s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 8 minutes and 30 seconds
3a8082e126