javaintellij-ideadependencies

"Cannot resolve symbol" in Intellij IDEA


I am unable to use libraries from one "module" in another. I am seeing red class names and getting "Cannot resolve symbol ..." errors all over the place:

enter image description here

The other modules are referenced in File | Project Structure all the other module's Paths are correct and include the *.classes I'm trying to use:

enter image description here

I have also tried a File | Invalidate Caches but am still having the same problems.

What do I need to do to fix this?


Solution

  • You need to add your external libraries/classes under dependencies in order for IDEA to see them when doing code analysis/autocomplete.