IDEA: javac: source release 1.7 requires target release 1.7

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

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

\"enter

How can I correc

18条回答
  •  庸人自扰
    2020-11-22 07:02

    If Maven build works fine, try to synchronizing structure of Maven and IntelliJ IDEA projects.

    In the Maven tool window, click refresh button . On pressing this button, IntelliJ IDEA parses the project structure in the Maven tool window.

    Note that this might not help if you're using EAP build, since Maven synchronization feature may be broken sometimes.

提交回复
热议问题