I have been trying to install Flutter and everything went smoothly until I launched the debugger and got an error stating, you need java 11 or higher to build your app with this version of gradle.
I went to preferences -> build, execution, deployment -> gradle
but there's no option for updating the path. How do I fix this?

I expected to see Gradle JDK path under Gradle projects, but there is no such option present whatsoever.