IntelliJ: Error: java: release version 10 not supported

后端 未结 13 1990
甜味超标
甜味超标 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:17

    I had similar issue except that the error was "release version 5 not supported. " I tried all of the above and other proposed solutions but nothing worked, except putting following xml into the pom.xml file:

    
        11
    
    
    
        
            
                
                    org.apache.maven.plugins
                    maven-compiler-plugin
                    3.8.1
                
            
        
    
    

    Code comes from: https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html

    After putting this code in pom.xml, make sure to Import Changes or Enable Auto-Import for the Maven project:

提交回复
热议问题