Solution:
1. Check the JDK of project(Ctrl+Alt+shift+S)
File ->Project Structure->Project Settings ->Project
2. Check the JDK of project(Ctrl+Alt+shift+S)
File ->Project Structure->Project Settings -> Modules -> (the name you need to modify) -> Sources ->
3. Check the configuration of Java
File ->Setting ->Build,Execution,Deployment -> Compiler -> Java Compiler
If the above three steps still fail
Clear IDEA cache Restart IDEA
File->Invalidate Caches/Restart
Read More:
- [Solved] Errorjava Compilation failed internal java compiler error
- Errorjava Compilation failed internal java compiler error [Solved]
- [Solved] Error:java: Compilation failed: internal java compiler error 解决办法
- [Solved] Error:java: Compilation failed: internal java compiler error
- [Solved] Java: compilation failed: internal java compiler error
- [Solved] IDEA Start Porject Error: java: Compilation failed: internal java compiler error
- [Solved] Compilation failed: internal java compiler error
- IntelliJ idea compilation error: Error:java : Compilation failed: internal java compiler error
- Compilation failed: internal java compiler error[How to Solve]
- [Solved] java: Compilation failed: internal java compiler error
- IDEA Compile Error: java Compilation failed internal java compiler error
- [Solved] Error:java: Compilation failed: internal java compiler error
- [Solved] IDEA java compile error: Error:java: Compilation failed: internal java compiler error
- [Solved] IDEA Error: java Compilation failed internal java compiler error
- [Solved]Error:java: Compilation failed: internal java compiler error
- [Solved] IDEA Compile Error: java: Compilation failed: internal java compiler error
- [2022 New Solution] Error:java: Compilation failed: internal java compiler error
- [Solved] IDEA Run Error: Error:java: 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