Cordova build changes distributionUrl in gradle-wrapper.properties file

后端 未结 8 1196
小鲜肉
小鲜肉 2020-12-05 06:30

I keep getting the following build exception when I run

 cordova run android --verbose
  • What went wrong: A problem occurred evaluatin
8条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-05 07:13

    I think is better to export the variable CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL

    Example:

    export
    CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL=http\\://services.gradle.org/distributions/gradle-2.14.1-all.zip
    

    If you are using a Mac, for example, add the export command in to the .bash_profile

    nano ~/.bash_profile
    

提交回复
热议问题