修改 Project Structure > Project Setting > Modules > {your module} > Language level
Project Structure > Project Setting > Modules > {your module} > Language level
修改后就沒有錯誤提示了
作者: 小鳴Cycling 出處: http://www.rzrgm.cn/52liming/p/13689048.html