Intellij highlighting not existing errors, thinking that LWJGL is not imported

Tags: , , ,



I imported LWJGL to the libs folder inside the project. The application works fine, but Intellij is highlighting almost every line, thinking that lwjgl is not imported.
enter image description here

Is there any simple solution? I want to avoid importing the library another way.

Answer

Try invalidating caches via File → Invalidate caches/restart in the top menu.



Source: stackoverflow