There’s not really more that can be said beyond the error message…
> Kotlin could not find the required JDK tools in the Java installation 'C:\Program Files (x86)\Java\jre1.8.0_251' used by Gradle. Make sure Gradle is running on a JDK, not JRE.
You need a JDK, not a JRE and your Java install at C:\Program Files (x86)\Java\jre1.8.0_251
is most definitely a JRE.