Gradle Offline Package Solution
Http://stackoverflow.com/questions/29874564/ionic-build-android-error-when-download-gradle
I had the same problem. I added Gradle to my project offline.
After downloading Gradle from issued link (this is http://services.gradle.org/distributions/gradle-2.2.1-all.zip) paste It in somewhere likes and in myApp\platforms\android\gradle\gradle-2.2.1-all.zip
Build.js from myApp\platforms\android\cordova\lib\build.js
find this:
var distributionUrl = ‘distributionUrl=http\\://services.gradle.org/distributions/gradle-2.2.1-all.zip‘
;
and replace it with your own file ' s location:
var distributionUrl = ‘distributionUrl=../gradle-2.2.1-all.zip‘;
Gradle 镜像设置问题
Using Oschina's image, file path myapp\platforms\android\build.gradle
Replace Mavencentral () with the following statement. Maven {URL ' http://maven.oschina.net/content/groups/public/'}
Cordova Ionic build (to be sorted)