将以下对应配置一致即可。
File-->Project Structure
File-->Settings
idea报错:Error:java不支持发行版本5的解决方法
原文:https://www.cnblogs.com/nio-nio/p/13508347.html