Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Invalid value: -1


NothinGG_
 Share

Recommended Posts

I run "runData" task and it gives me an error: "Invalid value: -1" and no logs/stacktrace

The same happens when running "runClient"

I'm using KotlinForForge and all my code is in Kotlin.

Edited by NothinGG_
Kotlin details
Link to comment
Share on other sites

This is a bug with IntelliJ currently: https://youtrack.jetbrains.com/issue/IDEA-292250.

Workaround is to change the ForgeGradle dependency in your build.gradle as follows:

classpath(group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true) { exclude group: 'org.apache.logging.log4j' } 
classpath 'org.apache.logging.log4j:log4j-api:2.11.2'
classpath 'org.apache.logging.log4j:log4j-core:2.11.2' 

 

  • Thanks 2
Link to comment
Share on other sites

15 hours ago, diesieben07 said:

This is a bug with IntelliJ currently: https://youtrack.jetbrains.com/issue/IDEA-292250.

Workaround is to change the ForgeGradle dependency in your build.gradle as follows:

classpath(group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true) { exclude group: 'org.apache.logging.log4j' } 
classpath 'org.apache.logging.log4j:log4j-api:2.11.2'
classpath 'org.apache.logging.log4j:log4j-core:2.11.2' 

 

I didn't understand what we have to do?

Link to comment
Share on other sites

35 minutes ago, diesieben07 said:

I am sorry, but you literally just have to copy paste it...? What is your question?

35 minutes ago, Luis_ST said:

Copy the code from diesieben07 and paste it in the build.gradle into the dependency part

paste it where?

unknown.png

sry I'm new in modding😅 so idk where I have to paste it!

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

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.