There are two possible cases of error: Java: compilation failed: internal java compiler error.
1. The JDK version may be inconsistent
Check whether the following three parts are consistent.
Preferences -> Compiler -> Version setting SDK version in Java compiler
File -> Project Structure -> SDK version in project
File -> Project Structure -> Module -> Module SDK version in each module dependencies
2. The memory setting of the compilation environment may be insufficient.
Preferences -> Compiler -> Shared build process heap size
Increase the default memory of 700M.
Read More:
- [Solved] IDEA Compile Error: java: Compilation failed: internal java compiler error
- IDEA Compile Error: java Compilation failed internal java compiler error
- [Solved] IDEA Start Porject Error: java: Compilation failed: internal java compiler error
- [Solved] IDEA Compile Error: Error:java: Compilation failed: internal java compiler error
- [Solved] Java: compilation failed: internal java compiler error
- [Solved] IDEA Error: java Compilation failed internal java compiler error
- [Solved] IDEA Run Error: Error:java: Compilation failed: internal java compiler error
- IDEA Compile Error: Error:java: Compilation failed: internal java compiler error
- IntelliJ idea compilation error: Error:java : Compilation failed: internal java compiler error
- [Solved] java: Compilation failed: internal java compiler error
- [Solved] IDEA Error: Error:java: Compilation failed: internal java compiler error
- Compilation failed: internal java compiler error[How to Solve]
- [Solved] Error:java: Compilation failed: internal java compiler error 解决办法
- [Solved] Compilation failed: internal java compiler error
- Java Error | Error:java: Compilation failed: internal java compiler error
- [Solved] Error:java: Compilation failed: internal java compiler error
- [Solved] Error:java: Compilation failed: internal java compiler error
- [Solved] Errorjava Compilation failed internal java compiler error
- [2022 New Solution] Error:java: Compilation failed: internal java compiler error
- [Solved] Error:java: Compilation failed: internal java compiler error