xxxxxxxxxx
Go to Android Studio -> File -> Settings -> Build, Execution and Deployment
-> Build Tools -> Gradle
In "Use Gradle From dropdown", select specified location and add the path of where your gradle is installed
upto the bin.
xxxxxxxxxx
Go to the Gradle scripts -> gradle-wrapper-properties,
where you will find the distributionUrl Url.
Copy everything after the "https\://" and paste it in to the browser.
Drag the downloaded bin into C:\Users\<username>\.gradle\wrapper\dists\gradle-<version>.bin\<something>
And delete everything that was in there before.