Can not use my JAR File


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 {

And then I added my jar like the following image:


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!


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,


1 Like