IntelliJ IDEA 13 uses Java 1.5 despite setting to 1.7

后端 未结 13 872
我在风中等你
我在风中等你 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条回答
  •  粉色の甜心
    2020-12-04 08:20

    One more thing that could cause this is having incorrect version of the project.

    In my case it was pointing to a non-existing project and for some reason IntelliJ downgraded version in settings to 1.5 and later when I fixed it, it was still interpreting target code version as 5 (despite setting it to 11).

提交回复
热议问题