failing to resolve library

Answered

I'm trying to import an external library into my empty console project.

 

I added it to project structure -> libraries and checked the checkbox for modules. I'm now seeing a "problem" of "library not used" on the project structure window.

 

at the same time, when I try to do the import it doesn't detect the classes, and when I try to import * it's failing build with "package does not exist"

 

I did try invalidate cache and even create a new empty project, no luck.

0
1 comment

Please make sure that you've added a dependency to the module https://www.jetbrains.com/help/idea/library.html#define-a-module-library .

If the problem remains attach a couple of screenshots from project structure settings:

  • Project Structure | Modules | select your module | Dependencies.

  • Project Structure | Libraries.

 

0

Please sign in to leave a comment.