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

前端 未结 28 1183
予麋鹿
予麋鹿 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 12:02

    I had the same problem.

    In my case the problem was with maven home directory and user settings file in Intellij Settings under Maven. I had installed Maven not in the default directory and I had also changed the location of the settings.xml file. This should also be changed in the IntelliJ Settings.

    Hope this helps also.

提交回复
热议问题