Unable to get Gradle wrapper properties

后端 未结 1 1758
萌比男神i
萌比男神i 2020-12-19 10:34

I get the following error when I am trying to import the project.

Unable to get Gradle wrapper properties from: F:\\projects\\Polyfills\\cordova\\pl

1条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-19 11:28

    It seems like the distributionUrl is missing in gradle-wrapper.properties of your project. gradle-wrapper.properties looks like as follows . please check your path and add distributionUrl inside gradle-wrapper.properties file

    #Thu Dec 13 11:43:04 JST 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
    

    Possible Solution

    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. ... /gradle/gradle-2.10

    0 讨论(0)
提交回复
热议问题