When starting with a skeleton Java project in IDEA 2016.1, on every import (such as java.util.List) the editor complaines that the class cannot be resolved. However the command completion and go-to-declaration will find it. Also the code compiles fine. It seems to be an issue concerning the editor only, but it makes it basically unusable.
I tried the obvious stuff:
- Check that any/correct JDK is selected for project
- Invalidate cache
- Re-install IDE and JDK
But without luck.
The problem seems to be similar to the one reported here: https://intellij-support.jetbrains.com/hc/en-us/community/posts/206838595-Cannot-resolve-symbol-on-import but in my case the problem is with any import.
This is the first time I am using IDEA for Java (only Python so far), so any hint is much appreciated.