IDEA: javac: source release 1.7 requires target release 1.7

后端 未结 18 1080
青春惊慌失措
青春惊慌失措 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:03

    If all the previous solutions haven't worked for you (which was my case), you can delete intellij config files:

    • project_directory/.idea/compiler.xml
    • project_directory/.idea/encodings.xml
    • project_directory/.idea/misc.xml
    • project_directory/.idea/modules.xml
    • project_directory/.idea/vcs.xml
    • project_directory/.idea/workspace.xml
    • etc.

    Intellij will regenerate new ones later. However, BE CAREFUL, this will also delete all intellij configuration made on the projet (i.e: configuration of debug mode, ...)

提交回复
热议问题