Ionic builds apk for hours

@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:

  1. Goto platforms\android\gradle\wrapper\gradle-wrapper.properties

  2. Check the gradle version it is trying to download.

  3. Download it manually

  4. Paste the downloaded zip in platforms\android\gradle

  5. 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)

  6. Open file platforms\android\cordova\lib\builders\GradleBuilder.js (NOT GenericBuilder.js)

  7. 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… :slight_smile: