My Gradle cache is constantly being corrupted when creating a GUI!

Started by emperor_creeper on

Topic category: Help with MCreator software

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
My Gradle cache is constantly being corrupted when creating a GUI!

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…
Sun, 09/24/2023 - 15:54

In most cases all Gradle errors are caused by one of these:

  • Firewall or antivirus (Microsoft Defender can cause problems too) blocking MCreator
  • Slow internet connection
  • Your ISP blocking certain websites
  • Too slow VPN or VPN with blocked domains that MCreator needs to access
  • Any other software blocking access to the download repository

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:

  1. Search for "Virus & threat protection" within the Windows start menu
  2. Click "Virus & threat protection settings"
  3. Scroll down to "Exclusions" and click "Add or remove exclusions"
  4. Click "Add an exclusion" and select "Folder" from the drop-down menu
  5. Add the following folders to the exclusion list
    1. <your user home folder>/.mcreator/
    2. <your user home folder>/MCreatorWorkspaces
    3. Any other folder where you store your MCreator workspaces

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>*"

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry, but it doesn't help.
Thu, 09/28/2023 - 18:44

Sorry, but it doesn't help.