Cordova build changes distributionUrl in gradle-wrapper.properties file

后端 未结 8 1210
小鲜肉
小鲜肉 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:23

    This was happening to me because I wasn't building with the latest version of cordova-android. so:

    cordova platform rm android
    cordova platform add android@latest
    

    Take not of the @latest directive. Also be sure to update download the latest version of gradle and include it in the appropriate directory, as pointed out in the other answers.

提交回复
热议问题