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

后端 未结 4 947
灰色年华
灰色年华 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:35

    I was facing the same problem when import projects into IntelliJ.

    for in my case first, check SDK details and check you have configured JDK correctly or not.

    Go to File-> Project Structure-> platform Settings-> SDKs

    Check your JDK is correct or not.

    Next, I Removed project from IntelliJ and delete all IntelliJ and IDE related files and folder from the project folder (.idea, .settings, .classpath, dependency-reduced-pom). Also, delete the target folder and re-import the project.

    The above solution worked in my case.

提交回复
热议问题