I am getting the following error :
'C:\Users\install\Desktop\project\CoMpC2\gradle\wrapper\gradle-wrapper.properties'.
No value with key 'distributionUrl' specified in wrapper properties file 'C:\Users\install\Desktop\project\CoMpC2\gradle\wrapper\gradle-wrapper.properties'.
It seems like the distributionUrl is missing in gradle-wrapper.properties of your project. It is shown below:
#Wed Apr 10 15:27:10 PDT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-2.10-all.zip
While the project is loaded in android studio, go to File then Settings. Under Settings window choose Build,Execution, Deployment then under build tools choose gradle. Click on use local gradle distribution. Change gradle home by browsing gradle location eg.C:/Program Files/Android/Android Studio2/gradle/gradle-2.10
While the project is loaded in android studio, go to File then Settings. Under Settings window choose Build,Execution, Deployment then under build tools choose gradle. Click on use local gradle distribution. Change gradle home by browsing gradle location eg.C:/Program Files/Android/Android Studio2/gradle/gradle-2.10
this is the correct answer , works for me
This answer is just an new version of Alok Gupta's Answer
#Tue Oct 16 17:39:45 IST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
copy above code inside gradle-wrapper.properties file.
I faced same error after Android Studio 3.5 update. DisturbutionUrl changes with every gradle plugin update. You can follow this page for lastest gradle plugin version for Android Studio.