[FOUND SOLUTION] Is there any way to stop gradle files from corrupting?

Started by Geming400 on

Topic category: Troubleshooting, bugs, and solutions

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[FOUND SOLUTION] Is there any way to stop gradle files from corrupting?
Wed, 08/30/2023 - 13:42 (edited)

I have internet limitations. So I activated the "offline gradle" mode. But doing that was a bad idea. First of, when doing my mod, after some times, it said that: your gradles files are corrupted, so I cleared the cache, didn't work. Cleared the gradle files, nothing. So I remaked my mod by re-copying items by items (it worked, but I had internet at the time). When I ran out of internet once again, it worked! When, it stopped working cuz it was "corrupted", I know that there was a warning that said that problem could occur (this is the first time that happened to me). I can't work on my fricking mod anymore. Is there anyway I could fix this, it would be nice answering to my post.

Thanks :D

Console error message:

Executing Gradle task: eclipse build
Build info: MCreator 2023.2.24119, forge-1.19.4, 64-bit, 16318 MB, Windows 10, JVM 17.0.5, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2023-08-29-23:32:14

FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'crashplane'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve net.minecraftforge.gradle:ForgeGradle:5.1.+.
Required by:
project :
> No cached version listing for net.minecraftforge.gradle:ForgeGradle:5.1.+ available for offline mode.
> No cached version listing for net.minecraftforge.gradle:ForgeGradle:5.1.+ available for offline mode.
* 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 https://help.gradle.org
BUILD FAILED in 5s

BUILD FAILED
Task completed in 8 seconds

oh, and if you want to know, when I start the client, it do an error on EVERY java class.
 

Project link: https://mega.nz/file/agxhTBqA#dLJS8rdMMdWh68o9guxwiiS653W6Ot5nCfgKr0SCQ9s
if it didn't work:
    link: https://mega.nz/file/agxhTBqA
    key: dLJS8rdMMdWh68o9guxwiiS653W6Ot5nCfgKr0SCQ9s

 

If you want to resolve this, follow the The second most common solution chapter in https://mcreator.net/wiki/gradle-setup-errors

Edited by Geming400 on Wed, 08/30/2023 - 13:42