How to Properly Install Gradle,Java, etc. to Build App

OK I had my gradle,java, android install before for building android apps.

One day, i had to reformat my laptop as there are some corrupted files that i couldn’t access.
I had to reformat and reinstall windows.

I reinstall gradle, java, android and im getting problems or errors related to compatibility like this error below.

I tried everything but no luck.
can anyone tell me the right version of gradle, java, android sdk etc…
for me to build an app? or at least tell me your version the tools u are using…

thank you

which it seems that you’re running Java 8. Java 11 is required. Make sure your JAVA_HOME or CORDOVA_JAVA_HOME is set to a JDK 11 environment .