Search code examples
intellij-idea

IntelliJ IDEA "cannot resolve symbol" and "cannot resolve method"


What are common causes for IntelliJ IDEA not being able to resolve built-in JVM types and methods? For example, when I mouse over String the tooltip says "Cannot resolve symbol 'String'". It's as if IntelliJ has doesn't know where the JVM is.

By the way, I am running OS X 10.6.6. Everything was working fine until I ran the system update this morning.


Solution

  • Most likely JDK configuration is not valid, try to remove and add the JDK again as I've described in the related question here.