Kotlin could not find the required JDK tools in the Java installation. Make sure Kotlin compilation is running on a JDK, not JRE

486 views Asked by At

When I run ktlint ci, the following unknown error occurs.

enter image description here

I'm truly at a loss, would appreciate some help.

If any more information is needed let me know and I'll do my best to provide it.

1

There are 1 answers

0
Vera Iureva On

Seems that your JDK version not compatible with your gradle

To check and replace your gradle verion go to File -> Project Structure -> Project.

For JDK: File > Preferences > Build, Execution, Deployment > Build Tools > Gradle

You can choose correct pair here https://docs.gradle.org/current/userguide/compatibility.html