Gradle 離線包解決方法android
http://stackoverflow.com/questions/29874564/ionic-build-android-error-when-download-gradlemaven
I had the same problem. I added gradle to my project offline.ionic
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:gradle
var distributionUrl = 'distributionUrl=http\\://services.gradle.org/distributions/gradle-2.2.1-all.zip'
;ui
And replace it with your own file's location:this
var distributionUrl = 'distributionUrl=../gradle-2.2.1-all.zip';
url
Gradle 鏡像設置問題
spa
使用oschina的鏡像, 文件路徑 myApp\platforms\android\build.gradle.net
用如下語句替換mavenCentral()就能夠了。 maven { url 'http://maven.oschina.net/content/groups/public/' }