java: Compilation failed: internal java compiler error

 

1、查看项目的jdk(Ctrl+Alt+shift+S)
File ->Project Structure->Project Settings ->Project

IDEA 编译  java: Compilation failed: internal java compiler error_Java

2、查看工程的jdk(Ctrl+Alt+shift+S)
File ->Project Structure->Project Settings -> Modules -> (需要修改的工程名称) -> Sources ->

IDEA 编译  java: Compilation failed: internal java compiler error_java_02

3、查看idea中Java配置

File ->Setting ->Build,Execution,Deployment -> Compiler -> Java Compiler

IDEA 编译  java: Compilation failed: internal java compiler error_Java_03

IDEA 编译  java: Compilation failed: internal java compiler error_java_04

 

 

 

4.  清除IDEA缓存,重启IDEA
File -> Invalidate Caches/Restart

IDEA 编译  java: Compilation failed: internal java compiler error_Deployment_05

 

5. Reload All Maven Projects

 

IDEA 编译  java: Compilation failed: internal java compiler error_java_06