IntelliJ throwing "java: error: option -source cannot be used together with --release"

IntelliJ throwing "java: error: option -source cannot be used together with --release"

IntelliJ 在尝试 运行 ScalaTests 时抛出“java:错误:选项 -source 不能与 --release 一起使用。

注意:使用捆绑的 JRE 和 IntelliJ Idea 2021.2.2.

设置中禁用--release 编译器选项 |构建、执行、部署 |编译器 | Java 编译器.