简体   繁体   中英

Cannot build project ionic ios and android

In Windows 10, when I run cmd build iOS and android , it shows the errors below:

https://drive.google.com/a/vivicorp.com/file/d/0BwZKFx415875VXlqcXlEaUQtNkk/view

How fix these errors?

UPDATE: I haven run build android. Error above, maybe due server download file error.

Ionic ios and android

It is simply not possible to develop iPhone/iOS apps on any platform other than a Mac.But have no problem with Android

Downloading gradle from this link http://services.gradle.org/distributions/gradle-2.2.1-all.zip

paste it in somewhere likes: YourApp\\platforms\\android\\gradle\\gradle-2.2.1-all.zip

in buld.js file from YourApp\\platforms\\android\\cordova\\lib\\build.js find this:

var distributionUrl = 'distributionUrl=http\\://services.gradle.org/distributions/gradle-2.2.1-all.zip';

replace this in your own location

var distributionUrl = 'distributionUrl=../gradle-2.2.1-all.zip';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM