24

After updating Android studio, my project now throws error The specified Gradle installation directory 'C:\Program Files\Android\Android Studio\gradle\gradle-2.14.1' does not exist. When checking that installation path, there is no gradle folder.

I also tested a sample project, and that seems to be working.

Update: found the solution in this comment: How to update gradle in android studio?

aphelion
  • 561
  • 1
  • 5
  • 12

2 Answers2

76

I have solved like this:

You'll:

In Android Studio -> File -> Settings -> Build, Execution, Deployment -> Build Tools -> Gradle

In "Use Gradle from" you choose 'gradle-wrapper.properties' file. And in Gradle JDK you choose what you need.

  • 4
    On a mac, it's Android Studio -> Android Studio -> Preferences -> Build, Execution, Deployment -> Build Tools -> Gradle ... – site Oct 05 '22 at 19:27
1

Update your Gradle JDK from File->Project Structure->SDK Location click JDK was moved to Gradle Settings and update enter image description here

enter image description here

Syed Raza Mehdi
  • 4,067
  • 1
  • 31
  • 47