Reason: Unknown, may be caused by the upgrade idea, previously played an upgrade patch;
Error message:
Information:java:javacTask: Source release 1.8 requires target release 1.8
INFORMATION:2017/1/24 11:27-compilation completed with 1 error and 0 warnings in 5s 873ms
Information:java:Errors occurred while compiling module ' java-lessions '
Information:javac 1.8.0_91 was used to compile Java sources
Information:module "Java-lessions" was fully rebuilt due to project configuration/dependencies changes
Error:java:Compilation failed:internal Java Compiler Error
Try the workaround:
1, modify the SDK version to 1.8, still no solution;
2, modify languages level to 8, is still invalid;
Final Solution:
File--> settings--> java complier---> Find the Project module, modify it to 1.8.
Then run the test code, everything OK ~
[Java Problem log] IntelliJ Idea Compilation error: Javactask: Source release 1.8 requires target release 1.8