use -source 7 or higher

后端 未结 7 1451
既然无缘
既然无缘 2020-12-28 12:15

While trying to build a project using intelliJ Ultimate 12 I am getting these errors

use -source or higher to enable diamond operator
use -source 7 or higher         


        
7条回答
  •  执念已碎
    2020-12-28 13:01

    I had the same problem and was struggling. Auto-import was true, re-import of project was not working and tried all possible options. But finally i found the solution.

    "Reimport All Maven Projects" did the trick for me.
    You can find the option on the Maven Project tab.


    enter image description here

提交回复
热议问题