Why so red? IntelliJ seems to think every declaration/method cannot be found/resolved

前端 未结 28 1410
予麋鹿
予麋鹿 2020-12-12 11:22

I just installed and re-installed IntelliJ. Every Java file is coming up RED. I checked the JDK; it is at 1.6.##. The maven clean install build worked just fine

28条回答
  •  执笔经年
    2020-12-12 11:50

    Yet another solution on IntelliJ Ultimate 2018.2

    • Hover over the import marked red
    • Select dropdown arrow on the popup that appears on left (below)
    • Choose "Add library ... to classpath"

提交回复
热议问题