Started by
SirPogsalot
on
Topic category: Troubleshooting, bugs, and solutions
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 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
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
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)
Thanks! it really helped XD.
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
Nevermind, I deleted my workspace :(
But still, it would be nice if you could let me know what was the error.
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