Cannot build project ionic ios and android

2019-06-14 08:01发布

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.

1条回答
该账号已被封号
2楼-- · 2019-06-14 08:54

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';
查看更多
登录 后发表回答