Quick Fix for Most Random Build Errors

Started by SirPogsalot on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 04:19, 17. Apr 2024
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Quick Fix for Most Random Build Errors
Mon, 05/09/2022 - 18:31 (edited)

Do you ever have it where you've got a perfectly functioning mod, and then you add one thing and suddenly everything has build errors and you can't seem to get them to go away? Well, so have I, and I found a solution that usually works. It's so simple I almost don't want to dedicate a forum post to it, but whatever. All you usually need to do is hit the button at the top "Regenerate code and build". This button looks like a band-aid. Simply press that and the build errors should disappear.

Edited by SirPogsalot on Mon, 05/09/2022 - 18:31
Pinned this topic :D Indeed…
Mon, 12/28/2020 - 09:26

Pinned this topic :D

Indeed usually code references brake and regenerating code to fix them is all that is needed.

If this does not do the trick, 95 % of the remaining cases are fixed by: https://mcreator.net/wiki/gradle-setup-errors

In some cases, Gradle caches that make sure the build process does not take too long can get corrupted. In such a case, go to:

<your user home folder>/.mcreator/gradle

In this folder, there is a folder called caches. Delete this folder and open MCreator again. 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.

If this is not enough to make things work, delete the entire gradle folder, not just caches, and try again.

If even this fails, try to delete the entire <your user home folder>/.mcreator/gradle folder, create a new workspace with the same generator version as the version of the workspace failing, after the setup of this new workspace is done, open your current workspace, and click Build & run -> Build workspace, then Build & run -> Reload gradle project and then Build & run -> Regenerate code and build.

Last seen on 16:45, 5. Jun 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I dont know how to fix my…
Thu, 06/03/2021 - 15:36

I dont know how to fix my issue. it says workspace setup failed, and this is the error log i think.

Executing 
    Gradle task: eclipse

Build 
    info: MCreator 2021.1.18117, forge-1.16.5, 64-bit, 3975 MB, Windows 10, 
    JVM 1.8.0_275, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk

org.gradle.tooling.GradleConnectionException: 
    Could not install Gradle distribution from 
    'https://services.gradle.org/distributions/gradle-6.8.1-all.zip'.

 
      at 
    org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution.getToolingImplementationClasspath(
DistributionFactory.java:139
)

 
      at 
    org.gradle.tooling.internal.consumer.loader.CachingToolingImplementationLoader.create(
CachingToolingImplementationLoader.java:41
)

 
      at 
    org.gradle.tooling.internal.consumer.loader.SynchronizedToolingImplementationLoader.create(
SynchronizedToolingImplementationLoader.java:44
)

 
      at 
    org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.onStartAction(
LazyConsumerActionExecutor.java:161
)

 
      at 
    org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(
LazyConsumerActionExecutor.java:143
)

 
      at 
    org.gradle.tooling.internal.consumer.connection.CancellableConsumerActionExecutor.run(
CancellableConsumerActionExecutor.java:45
)

 
      at 
    org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(
ProgressLoggingConsumerActionExecutor.java:61
)

 
      at 
    org.gradle.tooling.internal.consumer.connection.RethrowingErrorsConsumerActionExecutor.run(
RethrowingErrorsConsumerActionExecutor.java:38
)

 
      at 
    org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(
DefaultAsyncConsumerActionExecutor.java:67
)

 
      at 
    org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(
ExecutorPolicy.java:64
)

 
      at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(
ManagedExecutorImpl.java:48
)

 
      at java.util.concurrent.ThreadPoolExecutor.runWorker(
ThreadPoolExecutor.java:1149
)

 
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(
ThreadPoolExecutor.java:624
)

 
      at 
    org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(
ThreadFactoryImpl.java:56
)

 
      at java.lang.Thread.run(
Thread.java:748
)

Caused 
    by: java.util.zip.ZipException: error in opening zip file

 
      at java.util.zip.ZipFile.open(Native Method)

 
      at java.util.zip.ZipFile.<init>(
ZipFile.java:225
)

 
      at java.util.zip.ZipFile.<init>(
ZipFile.java:155
)

 
      at java.util.zip.ZipFile.<init>(
ZipFile.java:169
)

 
      at org.gradle.wrapper.Install.unzip(
Install.java:239
)

 
      at org.gradle.wrapper.Install.access$900(
Install.java:27
)

 
      at org.gradle.wrapper.Install$1.call(
Install.java:81
)

 
      at org.gradle.wrapper.Install$1.call(
Install.java:48
)

 
      at org.gradle.wrapper.ExclusiveFileAccessManager.access(
ExclusiveFileAccessManager.java:69
)

 
      at org.gradle.wrapper.Install.createDist(
Install.java:48
)

 
      at org.gradle.tooling.internal.consumer.DistributionInstaller.install(
DistributionInstaller.java:72
)

 
      at 
    org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution.getToolingImplementationClasspath(
DistributionFactory.java:133
)

 
      ... 14 more

TASK 
    EXECUTION FAILED

Task 
    completed in less than a second

Last seen on 03:11, 11. Aug 2021
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have the same problem; It…
Tue, 08/10/2021 - 02:49

I have the same problem; It can't seem to download the required gradle file for the project.

 

I know the KB says that usually its because of slow connections, and I live in a rural area, so yes, my connection is slow. But i managed to download the file itself (In this instance Gradle-4.9-bin.zip) and I'm just wondering if it's possible to install the files yourself?

 

I've tried everything in the "Most common solutions" part of the KB and to no avail. (and I clicked retry 50 times xD)

Last seen on 14:31, 24. Oct 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks! it really helped XD.
Thu, 10/07/2021 - 10:24

Thanks! it really helped XD.

Last seen on 13:49, 17. Jan 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Uh, I don't understand…
Fri, 11/05/2021 - 11:17

Uh, I don't understand...............
I'm havig kindaaaaa a similair problem.
Just that it shows

-- System Details --
Details:
Minecraft Version: 1.16.5
Minecraft Version ID: 1.16.5
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_302, Temurin
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Temurin
Memory: 216589752 bytes (206 MB) / 621281280 bytes (592 MB) up to 898629632 bytes (857 MB)
CPUs: 4
JVM Flags: 2 total; -XX:+IgnoreUnrecognizedVMOptions -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump
ModLauncher: 8.0.9+86+master.3cf110c
ModLauncher launch target: fmluserdevclient
ModLauncher naming: mcp
ModLauncher services:
/mixin-0.8.2.jar mixin PLUGINSERVICE
/eventbus-4.0.0.jar eventbus PLUGINSERVICE
/forge-1.16.5-36.2.0_mapped_snapshot_20201028-1.16.3-launcher.jar object_holder_definalize PLUGINSERVICE
/forge-1.16.5-36.2.0_mapped_snapshot_20201028-1.16.3-launcher.jar runtime_enum_extender PLUGINSERVICE
/accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE
/forge-1.16.5-36.2.0_mapped_snapshot_20201028-1.16.3-launcher.jar capability_inject_definalize PLUGINSERVICE
/forge-1.16.5-36.2.0_mapped_snapshot_20201028-1.16.3-launcher.jar runtimedistcleaner PLUGINSERVICE
/mixin-0.8.2.jar mixin TRANSFORMATIONSERVICE
/forge-1.16.5-36.2.0_mapped_snapshot_20201028-1.16.3-launcher.jar fml TRANSFORMATIONSERVICE
FML: 36.2
Forge: net.minecraftforge:36.2.0
FML Language Providers:
javafml@36.2
minecraft@1
Mod List:
client-extra.jar |Minecraft |minecraft |1.16.5 |COMMON_SET|Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f
forge-1.16.5-36.2.0_mapped_snapshot_20201028-1.16.|Forge |forge |36.2.0 |COMMON_SET|Manifest: NOSIGNATURE
main |Super power (forge) |super_power_forge |1.0.0 |VALIDATE |Manifest: NOSIGNATURE
Crash Report UUID: ca19650d-8d38-41fb-8500-66a7955c331b[13:03:18] [Render thread/INFO] [minecraft/Minecraft]: Stopping!
RUN COMPLETE

Last seen on 13:49, 17. Jan 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nevermind, I deleted my…
Fri, 11/05/2021 - 11:50

Nevermind, I deleted my workspace :(
But still, it would be nice if you could let me know what was the error.

Last seen on 18:08, 4. Mar 2023
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Please help me, when I…
Mon, 01/30/2023 - 19:55
Please help me, when I opened MCreator today the mod was not there, as if it had been deleted.
Last seen on 15:56, 2. Dec 2023
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it happened to me too but…
Wed, 03/08/2023 - 10:22

it happened to me too but you just have to click add workspace go to C:/users/*ur user*/mcreatorworkspaces/*ur workspace name* and than select *ur workspace name*.mcreator and click add