IDEA运行时报错(IDEA不识别新语法):Error:java: Compilation failed: internal java compiler error

时间:2021-11-11 09:34:06

File-->setting...-->Buil,Execution,Deployment-->Compiler-->Java Compiler中,改一下Module,我的原来是1.5改成1.8

IDEA运行时报错(IDEA不识别新语法):Error:java: Compilation failed: internal java compiler error

 

但是这样还是不够:

File-->Project Structure-->Modules-->选择项目-->在右侧Language level中选择高的版本,这样就解决了

IDEA运行时报错(IDEA不识别新语法):Error:java: Compilation failed: internal java compiler error

 

 

原文链接:http://www.cnblogs.com/ieayoio/p/5730055.html