Building project in IntelliJ IDEA

I’ve followed all the steps accordingly but it seems as though there is a build failed with an invalid source release.
May I know what steps I should take to resolve this and build my custom project?

Looks like your IDEA java version is incorrect, needs to be at least 17:

Hi, thanks for the advice. However, my project bytecode version was already set to Java 17. Gradle JVM was also set to Java 17.