IntelliJ: Error: java: release version 10 not supported

后端 未结 13 1956
甜味超标
甜味超标 2020-12-24 01:45

In IntelliJ, I\'m getting this strange error message when I try to build from the build menu

Error: java: release version 10 not supported

13条回答
  •  孤独总比滥情好
    2020-12-24 02:21

    The most upvoted answer really helped me. However, for me the problem wasn't the Project bytecode version. Instead, my Maven module was marked with Target bytecode version 1.5, see picture below.

    Just clicking the row and removing it fixed the problem:

    • File -> Settings-> Build, Execution, Development -> Compiler -> Java Compiler
    • Delete any Per-module bytecode versions in the list, which override the project bytecode version.

提交回复
热议问题