Tutorial: How to fix build failed everytime

1 post / 0 new
Last seen: 2 years 3 months ago
Joined: 04/21/2015 - 22:31
Gems: 0
Tutorial: How to fix build failed everytime

Some computers that used already gradle may get this in console:

Spoiler: Highlight to view
>FAILURE: Build failed with an exception.
>* What went wrong:
>A problem occurred configuring root project 'forge'.
>> Could not resolve all dependencies for configuration ':classpath'.
>   > Could not resolve net.minecraftforge.gradle:ForgeGradle:>     Required>Total time: 6.916 >         :forge:unspecified
>      > Could not parse Ivy file file:/C:/Users/Mati/.gradle/caches/modules-2/metadata-2.12/descriptors/net.minecraftforge.gradle/ForgeGradle/1.2-SNAPSHOT/58d026f73bd51b2d7316bd092d31aca0/ivy.xml
>         > Content is not allowed in prolog.
>* Try:
>Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Fixing is SIMPLE

1. Open your notepad and type this:

del C:\Users\%USERNAME%\.gradle /s /q

2.Save it on every place you want and delete ".txt" from file ending and replace it with ".bat"

3.Run the file

4.You may see a window appear with many many text. Wait before it deletes all

Information: In step 5 Do not use the gradle command execution function. It make the console freeze.

5.Get from forge package for developers "gradlew.bat" and wait again

6.You're done!