use -source 7 or higher

后端 未结 7 1467
既然无缘
既然无缘 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 12:57

    For IntelliJ IDEA Community 2018.2:

    • In the project tool window, right-click on the project name to get to the Project Structure menu.
    • Set Language Level to whatever version you want, and rebuild project again.

    You can also use F4 as shortcut to get to the same menu.

提交回复
热议问题