[idea] Error:java: Compilation failed: internal java compiler error Solution

Error message:

Reason for the error:
The Java version in the project is inconsistent, you can view the jdk configuration in the
project 1. View the jdk of the project (Ctrl+Alt+shift+S)
File ->Project Structure->Project Settings ->Project 

2. View the jdk of the project (Ctrl+Alt+shift+S)
File ->Project Structure->Project Settings -> Modules -> (the name of the project to be modified) -> Sources ->  

3. View the Java configuration in the idea 

The reason for the error is here. The configuration of the Java version in the idea software environment is different from the configuration of the previous project. Setting the same can solve the problem.

 Similar issue due to Java version: http://blog.csdn.net/jdjdndhj/article/details/70256789

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325338217&siteId=291194637