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