天天看点

IDEA报错:java: Compilation failed: internal java compiler error

具体有:

  • 查看项目的jdk(Ctrl+Alt+shift+S)

File ->Project Structure->Project Settings ->Project

  • 查看工程的jdk(Ctrl+Alt+shift+S)

File ->Project Structure->Project Settings -> Modules -> (需要修改的工程名称) -> Sources

  • 查看idea中Java配置

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

  • 修改堆大小

File ->Setting -->Build,Execution,Deployment-->Compiler 中找到build process heap size(Mbytes):700改为1024或者8192