Started by
emperor_creeper
on
Topic category: Help with MCreator software
Whenever I create a GUI element in the MCreator workspace, my Gradle cache gets corrupted. I tried disabling the antivirus and cleaning the Gradle folder and reinstalling MCreator and creating a new workspace, but nothing helped! Please help me, I can't do a mod for a week!!!(T^T)
In most cases all Gradle errors are caused by one of these:
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.
It can also happen that the servers from which Gradle downloads files (Minecraft servers, Minecraft Forge repo, Maven repository) are down and you might just need to try again later in such cases.
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.
How to add needed folders to Microsoft Defender exclusions?
To do this, do the following steps:
<your user home folder>/.mcreator/
<your user home folder>/MCreatorWorkspaces
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:
powershell -inputformat none -outputformat none -NonInteractive -Command Add-MpPreference -ExclusionPath "<folder path>*"
Sorry, but it doesn't help.