When try to compile your Java code on IntelliJ, you may get the annoying java: invalid source release: 8 error. The complete error is as follows
1 2 3 4 |
Information:java: Errors occurred while compiling module Information:javac 7 was used to compile java sources Information:03/02/19 07:35 - Compilation completed with 1 error and 0 warnings in 1 s 529 ms Error:java: invalid source release: 8 |
The reason is that your project/module JDK...