IntelliJ IDEA “cannot resolve symbol” and “cannot resolve method”

后端 未结 4 940
灰色年华
灰色年华 2020-12-08 12:50

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 \"Cann

4条回答
  •  爱一瞬间的悲伤
    2020-12-08 13:29

    For me, IntelliJ could autocomplete packages, but never seemed to admit there were actual classes at any level of the hierarchy. Neither re-choosing the SDK nor re-creating the project seemed to fix it.

    What did fix it was to delete the per-user IDEA directory ( in my case ~/.IntelliJIdea2017.1/) which meant losing all my other customizations... But at least it made the issue go away.

提交回复
热议问题