'The specified Gradle installation directory does not exist error after Android Studio update 2021 1 1 patch2

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?



Solution 1:[1]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Олександр Забудський