I am having some trouble, I am trying to make an addon for a Mod and I have imported the mod it depends via a jar file (throught modules and libraries, in both just in case) but an error pops up and it says that the package I am importing doesnt exist, but you can clearly see it is there in the external libraries. Does anyone know why could this happen?
#Intellij IDEA Package does not exist
1 messages · Page 1 of 1 (latest)
<@&987246652869971988> please have a look, thanks.
You can use </chatgpt:1108714622413963314> to ask ChatGPT about your question while you wait for a human to respond.
There is an example of using mod jars as dependencies right above your implementation instruction so maybe try that. Alternatively use jetpack to use the GitHub repo source code as a dependency
you're building via gradle, but adding the dependency in idea only
add the dependency to gradle first, idea can sync those over anyway
in the dependencies { ... } section in build.gradle, add to the bottom: implementation files("./pathToThe.jar")
nevermind i didnt read
is the jar actually in the project folder? doesn't seem like it
No it is not
Do I just add it to the project folder inside de src or above it?