Error:java: invalid source release: 8 in Intellij. What does it mean?

前端 未结 16 1040
旧时难觅i
旧时难觅i 2020-11-27 08:55

Im trying to compile some code in I\'m using Intellij Ultimate 13.1.4, but I get the following error and I have no idea what it means:

Information:Using java         


        
16条回答
  •  情书的邮戳
    2020-11-27 09:44

    As Andreas mentioned all about:

    Error:java: invalid source release: 8 in IntelliJ
    Error:java: invalid source release: 13 in IntelliJ
    Error:java: invalid source release: 14 in IntelliJ...
    

    OR whatever version you are using in Java...

    The problem will exist if you do not have it matching inside the below code:

    
        1.8
        1.8
    
    

    This 1.8 in my case, must be matching on your device through MAVEN project library, settings, preferences, project setting and SDK.

提交回复
热议问题