IntelliJ IDEA 13 uses Java 1.5 despite setting to 1.7

后端 未结 13 876
我在风中等你
我在风中等你 2020-12-04 07:40

Despite specifying JDK 1.7 in all project settings (including in File -> Project Structure -> Project :: Project SDK), the following error is produced by

13条回答
  •  萌比男神i
    2020-12-04 08:32

    [For IntelliJ IDEA 2016.2]

    I would like to expand upon part of Peter Gromov's answer with an up-to-date screenshot. Specifically this particular part:

    You might also want to take a look at Settings | Compiler | Java Compiler | Per-module bytecode version.

    I believe that (at least in 2016.2): checking out different commits in git resets these to 1.5.

提交回复
热议问题