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

前端 未结 16 1030
旧时难觅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:51

    For Gradle users having this issues, if nothing above helps this is what solved my problem - apply this declarations in your build.gradle files:

    targetCompatibility = 1.6 //or 1.7;1.8 and so on
    sourceCompatibility = 1.6 //or 1.7;1.8 and so on
    

    Problem solved!

提交回复
热议问题