I am getting the following error :
\'C:\\Users\\install\\Desktop\\project\\CoMpC2\\gradle\\wrapper\\gradle-wrapper.properties\'.
No value with key \'distribu
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.
Download latest gradle from gradle website, like 4.6-all.zip, extract it on drive and then 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.E:/gradle/gradle-2.10.
Don't forget to update below in gradle-wrapper.properties.
distributionUrl=https://services.gradle.org/distributions/gradle-4.6-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
this is the correct answer , works for me
Just copy this code and paste it in gradle-wrapper.properties
(Gradle Version):
#Fri Sep 18 08:52:19 IST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip