Jump to content

IntelliJ Build Suddenly Failing


Splurpy_

Recommended Posts

I've been developing a mod for 1.19.2 for a little while (months) now, and everything has been going well. The only issue I've suddenly encountered is that I can no longer run the client.

I haven't touched anything within gradle, maven, or intellij, and all of my system path/environment variables are fine. I can confirm that it is building with the correct java version (Adoptium 17.06.). It was working about 10 minutes ago, and now whenever I try to run the client, the build fails almost immediately, citing:

"Execution failed for task ':compileJava'.
> error: release version 17 not supported"

Full pastebin of what is given: PasteBin

 

I'm not super familiar with gradle as a whole, so I'm hoping this is just something simple that I don't quite understand due to lack of experience.

 

I've checked project sdk, module sdk, gradle sdk, etc., and everything seems fine. It's strange to me that this occurred so suddenly, and without making any actual changes. Once again, everything has been working completely fine up until right now.

 

Any help would be wonderful!

Edited by Splurpy_
Link to comment
Share on other sites

It would seem it was something as simple as just rebuilding gradle . That fixed it, and its working well, now.

 

Worth noting for anyone who has a similar issue, just try rebuilding gradle. I'm not sure why I didn't think of that sooner.

Edited by Splurpy_
Link to comment
Share on other sites

im completely BRAND NEW to this, in my intellij when i tru runclient it gives me non zero exitcode 1, and before that i see depreciated (something) will not work with gradle 8, i have no clue and i can not find any fixes for this, now what does rebuilding gradle even mean? im still watching java coding tutorials and just trying to make a simple mod for myself right now, any ideas???

 

Link to comment
Share on other sites

58 minutes ago, RedLunarFPS said:

also, do i NEED a github account for coding or is it optional??

 

Entirely optional, but it’s nice to have for version control.
 

If you don’t know Java, I don’t think you’re going to be able to mod. Modding generally requires intermediate Java knowledge. That said, if you want a good place to start with modding, and also Java as a whole, check out Kaupenjoe on YouTube. Excellent source for getting started with modding.

Once again, you’re really not going to be able to do much without any sort of Java knowledge. It may not be as bad if you know another object-oriented language, but if not, it’s gonna be rough.

Link to comment
Share on other sites

i did a little bit of java coding in highschool, and i was already watching kaupenjoes' tutorial on 1.19 modding, but i followed his video step by step but everytime i try runclient it always comes up with non zero exit code 1 and im just not sure how to fix it so the last 2 days i been trying to find a fix for it but its feeling like its just me that is having this problem (im tryig to make a simple mod for 1.19.2) and i used his tutorial steps while using forges latest update for 1.19.2)

Link to comment
Share on other sites

1 hour ago, RedLunarFPS said:

but i followed his video step by step but everytime i try runclient it always comes up with non zero exit code 1 and im just not sure how to fix it so the last 2 days i been trying to find a fix for it but its feeling like its just me that is having this problem (im tryig to make a simple mod for 1.19.2) and i used his tutorial steps while using forges latest update for 1.19.2)

It’s most likely to do with your SDK/JDK or an issue with your gradle. You’re going to need to rebuild your gradle, and then try again. It’s pretty simple, you should be able to easily find resources online for how to rebuild gradle.

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.

Announcements



×
×
  • Create New...

Important Information

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