Can not use my JAR File

Hi,

I’m trying to use some classes from a JAR file that is located in my local Maven repository.

At the ‘build.gradle’ file I added:

repositories {
        mavenLocal()

And then I added my jar like the following image:

img

The application compiles fine, but when I try to import a class from the JAR in the screen controller, the class is not found:

Any tips?

Thank you!

Hi.

Please run the gradlew idea command in the IDE terminal. When this task is executed, dependencies with their source code are loaded from the artefact repository to the local Gradle cache.

Hi Natalia,

It’s working now.

Thank you,

Claudio

1 Like