记录:
IDEA升级了版本,直接导入之前的项目,编译时错误 : IDEA Error:java: Compilation failed: internal java compiler error
编译版本低于运行环境版本

解决办法:提升编译版本

设置如下:
File-->Setting...-->Build,Execution,Deployment-->Compiler-->Java Compiler 设置相应Module的target bytecode version的合适版本。
本文由博客一文多发平台 OpenWrite 发布!
网友评论