Jump to content

Gradle build failing


TheElementGuy

Recommended Posts

I am trying to set up my mod with gradle, but every time I run genVSCodeRuns, I get the error:

Could not resolve all files for configuration ':runtimeClasspathCopy'.
> Could not find net.minecraftforge:forge:1.19-41.1.0_mapped_official_1.19.
  Searched in the following locations:
    - file:/C:/Users/judea/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.19-41.1.0_mapped_official_1.19/forge-1.19-41.1.0_mapped_official_1.19.pom
    - file:/C:/Users/judea/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.19-41.1.0_mapped_official_1.19/forge-1.19-41.1.0_mapped_official_1.19.jar
  Required by:
      project :

I don't know how to fix it.

Please don't put anything from 1.16.5, 1.12.2, 1.14, 1.15, 1.0, or anything not 1.18.x or 1.19.x!

Link to comment
Share on other sites

I don't know much about VSCode and the error message doesn't give much to go on.

 

From the error message, it could be something is missing in your gradle cache and you are running gradle in offline mode so it won't try to download it and instead just say it is missing.

It could also be you mistyped a version number (e.g. wrong forge version for the minecraft version), although it looks correct to me at first glance.

 

Another thing it might be is a previous run of a gradle task only partially downloaded something. And so you have a broken file in your gradle cache.

You can try running gradle with --debug to see if it gives some useful information.

But usually a simpler fix is to exit your ide (to make sure gradle is not running in the background).

If you have previously run gradle from the command line use gradlew --stop as well

Then delete /C:/Users/judea/.gradle/caches/forge_gradle/

This will force ForgeGradle to redownload everything from scratch. That way you don't have to try to figure out which file is broken.

 

Edited by warjort

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.