Minecraft Forge Gradle Error Fix(Build Fail Fix) (partially outdated)

preview_player
Показать описание
!IMPORTANT!

Im very sorry to inform you, that Oracle started a payed subscription to download Java SDK. In case you find any solutions for that Problem, feel free to comment, how to get to download Java.

Console Command:
gradlew setupDecompWorkspace eclipse (outdated)

"1.13.2 no longer uses setupDecompWorkspace. You either run ./gradlew genEclipseRuns and import the project as a gradle project, or you run ./gradlew eclipse and import it as a normal eclipse project"
Рекомендации по теме
Комментарии
Автор

THANK YOU SOO IT STILL WORKS THIS WAS SUPER

tailsizkool
Автор

I had the same problem and your advice on a newer or different version helped me a lot. In my case I needed a newer JDK version 64 and not 86 as I was using it before. I confess that I also delete a path that did not lead to a place existed.

alanisisabelle
Автор

You deserve more likes man, seriously this Gradle thing made the setup really really awful and frustrating. Now I don't have to worry about it any longer and start coding. THNX! A lot!

theburningman
Автор

Please consider reading the Video Description. You might find an answer for your problem there. If not, im glad to help you in the comment section :)

nochance
Автор

Hey I still seem to have an issue with java, I updated my path variable with the JDK version 8u161 yet I still get this error when I try to gradlew setupDecompWorkspace

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '10'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

(I did not uninstall the other versions of java in my program files\java folder, only changed the paths, is that a problem??)

amazinglion
Автор

for anyone who have the error still or need to use more ram but it won't allow it, i would first adivse downloading the 151 ver not the newest one, it can be found in the archives on the site, then deleat all the newer versions and close the command console, edit the advanced setting to match the new java ver and open the command again and use gradlew setupDecompWorkspace eclipse, it should work
or at least it did for me, i hope it worked for you if this didn't

IdkAndIdc
Автор

thank you very much this video and channel deserves more :D

raeraelo
Автор

Thanks for this, I was running 32bit Java

Andruth
Автор

another build error happened to me, but i couldn't find any tutorial on how to fix it.
the error said:

> Task :runClient FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':runClient'.
> Process 'command 'E:\Program finished with non-zero exit value 1

how can i fix this?

Diamondyy
Автор

D:\mod project>gradlew.bat setupDecompWorkspace

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '12.0.2'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.




I don't know what happened. i just stuck here

zhengyuhanyan
Автор

the -xmx3g is 3g standard and it still doesnt work
and when i do gradle task
setupDecompWorkspace doesnt even show up

TheSkyGamez
Автор

Hello I don't have a file gradle.propertis what can I do?

MAKEQS
Автор

Thanks for making this video but I can't seem to get it running for forge 1.12.2. 1.7.10 worked fine but 1.12.2 doesnt.
This is what is going wrong everytime:
:applySourcePatches
Patching failed: Cannot find hunk target
1: Cannot find hunk target @ 0
1/1 failed
:applySourcePatches FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':applySourcePatches'.
> Cannot find hunk target

gradlew cleanCache doesnt work, also clearing indepencencies doesnt. I think I have the JAVA_HOME and Path setup correctly since it did build succesfully for 1.7.10. I have the latest JRE installed and both JDK version 8 and version 12. I would really appreciate any help in fixing this.

sanderbroekman
Автор

Any reason why mine cannot recognize the download even though EVERYTHING was setup correctly? it seems an issue with Forge's Gradle, am using the 1.7.10 version so I have 1.8 JDK installed.

runictellings
Автор

How to fix?
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'ClientBase'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve
Required by:
project :
> Could not resolve

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

seppukx
Автор

It still says Build Failed. I tried reinstalling it etc. I'm trying to get a mod from 1.5.2 to 1.7.10

CarnageCaney
Автор

There is something in my proprieties org.daemon=false should i make it to true?

Grimmajow
Автор

Your video is the only video that i cant see with a good resolution, and sometimes turn all black. Maybe my graphic card have some problem with your video ... so. I have windows 7, i cant see where you go from minute 2:45 to 3:10. at 3:35 everything turns black until 5:18.
Yesterday was fine :( can you help me to understand what to do? a will appreciate a message :)

alessandromariani
Автор

i have an issue, after i've done that i should write the gradlew.bat eclipse, but this happens
"""
gradlew.bat eclipse

FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please read the following process output to find out more:

Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.



"""
What should i do?

vladaslittleparadise
Автор

Hallo,
ich bin auch deutsch!
wenn ich gradlew setupDecompWorkspace eclipse ausführe,
kommt die Fehlermeldung : Error : JAVA_HOME is not set and no "java" command could be found in your PATH ...


Obwohl ich das Tutorial genau befolgt habe
Ich habe mir auch sämpliche Tutorials angeguckt, aber es hat nie funktioniert!
Ich habe sogar meinen .minecraft Ordner gelöscht und Minecraft neu installiert + Forge!
Irgendwas ist da komplett schief gelaufen - Zuerst war der Fehler nur bei ":recompileMc", dann habe ich nach einer Lösung gesucht bis es schließlich zu dem ganzen JAVA_HOME Zeug kam und ich jetzt einen ganz anderen Fehler habe, unzwar dass JAVA_HOME nicht gesetzt wurde!


Bitte hilf mir!

gmgbros