close

[Solved] Flutter error Kotlin could not find the required JDK tools

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Flutter error Kotlin could not find the required JDK tools in java. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Flutter error Kotlin could not find the required JDK tools Error Occurs?

Today I get the following error Flutter error Kotlin could not find the required JDK tools in java.

How To Solve Flutter error Kotlin could not find the required JDK tools Error ?

  1. How To Solve Flutter error Kotlin could not find the required JDK tools Error ?

    To Solve Flutter error Kotlin could not find the required JDK tools Error upgrade java jdk then go to
    file -> project structure -> project setting -> project change "project sdk"
    to the latest JDK

  2. Flutter error Kotlin could not find the required JDK tools

    To Solve Flutter error Kotlin could not find the required JDK tools Error upgrade java jdk then go to
    file -> project structure -> project setting -> project change "project sdk"
    to the latest JDK

Solution 1

One of these two methods should help you:

  1. In gradle.properties in the .gradle directory in your HOME_DIRECTORY set org.gradle.java.home=/path_to_jdk_directory

OR:

  1. In your build.gradle
compileJava.options.fork = true
compileJava.options.forkOptions.executable = '/path_to_javac'

Solution 2

upgrade java jdk then go to

file -> project structure -> project setting -> project change "project sdk"

to the latest JDK

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read

Leave a Comment