IDEA: javac: source release 1.7 requires target release 1.7

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

    I ran into this and the fix was to go to Project Settings > Modules > click on the particular module > Dependencies tab. I noticed the Module SDK was still set on 1.6, I changed it to 1.7 and it worked.

提交回复
热议问题