Search code examples
javaideintellij-14

intellij idea cannot resolve symbol on built-in methods


I'm using IntelliJ IDEA IDE and I have some problems with it. It seems the IDE does know the built-in methods for arrays and arraylist (add(), remove()...). It marks them red "cannot resolve symbol".

I tried the cache thing and reinstalled the IDE. I got 14.1.5 ultimate and I tried Comunity Edition as well but it's not working.

I got a new problem. It seems the IDE does not know for and if loops.

Also, one time they were recognized but the colors of the refrences ("used to be violet") turned white.


Solution

  • Make sure that you have a JDK installed and selected the Project SDK (under Project Structure -> Project).