码迷,mamicode.com
首页 > 其他好文 > 详细

cordova ionic build(待整理)

时间:2015-10-15 16:41:22      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:

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/‘
}


cordova ionic build(待整理)

标签:

原文地址:http://my.oschina.net/u/2485194/blog/517537

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!