标签:
Gradle 离线包解决方法
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 (here is http://services.gradle.org/distributions/gradle-2.2.1-all.zip) paste it in somewhere likes myApp\platforms\android\gradle\gradle-2.2.1-all.zip
and in 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 镜像设置问题
使用oschina的镜像, 文件路径 myApp\platforms\android\build.gradle
用以下语句替换mavenCentral()就可以了。 maven { url ‘http://maven.oschina.net/content/groups/public/‘ }
标签:
原文地址:http://my.oschina.net/u/2485194/blog/517537