@rlwt
This is quite comman thing at the start.
It actually downloads the gradle.
What you can do is download the gradle manually, just follow the below steps:
-
Goto platforms\android\gradle\wrapper\gradle-wrapper.properties
-
Check the gradle version it is trying to download.
-
Download it manually
-
Paste the downloaded zip in platforms\android\gradle
-
Then in platforms\android\gradle\wrapper\gradle-wrapper.properties change the last line to distributionUrl=…/gradle-2.14.1-all.zip (Of course put your downloaded gradle version)
-
Open file platforms\android\cordova\lib\builders\GradleBuilder.js (NOT GenericBuilder.js)
-
Some where on line 202: change code to var distributionUrl = ‘…/gradle-2.14.1-all.zip’ and comment the rest of the things in the line
Thats it!!!
You may find it lil hectic… but it works great… You’ll get used to it after building 2-3 projects…