IDEA: javac: source release 1.7 requires target release 1.7

后端 未结 18 1328
青春惊慌失措
青春惊慌失措 2020-11-22 06:26

When running a JUnit test, using IntelliJ IDEA, I get

\"enter

How can I correc

18条回答
  •  日久生厌
    2020-11-22 06:56

    IntelliJ 15, 2016 & 2017

    Similar to that discussed below for IntelliJ 13 & 14, but with an extra level in the Settings/Preferences panel: Settings > Build, Execution, Deployment > Compiler > Java Compiler.

    IntelliJ 13 & 14

    In IntelliJ 13 and 14, check the Settings > Compiler > Java Compiler UI to ensure you're not targeting a different bytecode version in your module.

    enter image description here

提交回复
热议问题