Getting a loading wrapper properties error in Android

后端 未结 10 890
逝去的感伤
逝去的感伤 2020-12-07 04:48

I am getting the following error :

\'C:\\Users\\install\\Desktop\\project\\CoMpC2\\gradle\\wrapper\\gradle-wrapper.properties\'.
No value with key \'distribu         


        
相关标签:
10条回答
  • 2020-12-07 05:01

    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.

    0 讨论(0)
  • 2020-12-07 05:04

    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

    0 讨论(0)
  • 2020-12-07 05:11

    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

    0 讨论(0)
  • 2020-12-07 05:11

    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
    
    0 讨论(0)
提交回复
热议问题