IntelliJ IDEA 13 uses Java 1.5 despite setting to 1.7

后端 未结 13 905
我在风中等你
我在风中等你 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:28

    In IntelliJ Community Edition 2019.02, Changing the following settings worked for me

    1. Update File->Project structure->Project Settings->Project->Project Language level to Java 11 (update to the java version that you wish to use in your project) using drop down.

    2. Update File->Project structure->Project Settings->Modules->Language level

    3. Update File->Settings->Build,Execution,Deployment -> Compiler -> Java Compiler-> Project ByteCode Version to java 11.

    4. Update Target version for all the entries under File->Settings->Build,Execution,Deployment -> Compiler -> Java Compiler-> Per module Byte Code Version.

提交回复
热议问题