Error:java: Compilation failed: internal java compiler error 解决办法

具体参考:Error:java: Compilation failed: internal java compiler error 解决办法 - 程序猿的故事 - CSDN博客

1、查看项目的jdk(Ctrl+Alt+shift+S)
File ->Project Structure->Project Settings ->Project
Error:java: Compilation failed: internal java compiler error 解决办法_第1张图片
2、查看工程的jdk(Ctrl+Alt+shift+S)
File ->Project Structure->Project Settings -> Modules -> (需要修改的工程名称) -> Sources ->
Error:java: Compilation failed: internal java compiler error 解决办法_第2张图片
3、查看idea中Java配置
File ->Setting ->Build,Execution,Deployment -> Compiler -> Java Compiler
Error:java: Compilation failed: internal java compiler error 解决办法_第3张图片
上面三步做完还是失败的话

清除IDEA缓存 重启IDEA
File->Invalidate Caches/Restart
Error:java: Compilation failed: internal java compiler error 解决办法_第4张图片

你可能感兴趣的:(IDEA)