Jump to content

CMD.exe is saying "Missing 'minecraft' dependency."


Recommended Posts

Posted

Whenever i try to do the "gradlew genEclipseRuns" It shows this:

 

C:\Users\User\Desktop\Mod attempt>gradlew genEclipseRuns
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.4.2/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build

> Configure project :
Java: 17.0.5, JVM: 17.0.5+8 (Eclipse Adoptium), Arch: amd64

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file 'C:\Users\User\Desktop\Mod attempt\build.gradle' line: 15

* What went wrong:
A problem occurred evaluating root project 'Mod attempt'.
> No signature of method: build_6fwm4aljxguf75efifp5ovbqi.minecraft() is applicable for argument types: (build_6fwm4aljxguf75efifp5ovbqi$_run_closure1) values: [build_6fwm4aljxguf75efifp5ovbqi$_run_closure1@4f13485f]

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

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring root project 'Mod attempt'.
> Missing 'minecraft' dependency.

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

This is my code:

  Reveal hidden contents

 


Not sure whats wrong but ChatGPT is prob outdated so I would rather ask here.

Posted
  Quote

> No signature of method: build_6fwm4aljxguf75efifp5ovbqi.minecraft() is applicable for argument types: (build_6fwm4aljxguf75efifp5ovbqi$_run_closure1) values: [build_6fwm4aljxguf75efifp5ovbqi$_run_closure1@4f13485f]

Expand  

That's a pretty cryptic error message. 🙂

 

It basically says there is something wrong with one of the arguments in the minecraft closure starting on line 15. But doesn't give any other useful information.

Maybe it is the hyphen in the mod name?

Otherwise, you are going to have to go through it and check you have the brackets,etc. in the right places and check the spellings of the parameter names.

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.

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.

Announcements



×
×
  • Create New...

Important Information

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