ionic cordova platform add android 
ionic cordova platform add android 
yizhichao 发表于6个月前
ionic cordova platform add android 
  • 发表于 6个月前
  • 阅读 289
  • 收藏 0
  • 点赞 0
  • 评论 0

新睿云服务器60天免费使用,快来体验!>>>   

yizhichaodeMacBook-Pro:myappsvn yizhichao$  ionic cordova platform add android 

✖ cordova platform add android --save - failed!

[ERROR] Exception: Using cordova-fetch for cordova-android@~6.2.2

 

        Adding yargs project...

        Error: Your yargs platform does not have Api.js

        

1down vote

There seems to be an error with android@6.2.x and later. I had the same issue and using the below step was able to build my apk.

Do the following:

cordova platform remove android

Then add 6.1.2 specifically

cordova platform add android@6.1.2

Also found the following as an temporary workaround

cordova platform add android --nofetch

 

 

  ionic cordova platform --help

 

  Examples:

 

    $ ionic cordova platform 

    $ ionic cordova platform add ios

    $ ionic cordova platform add android

    $ ionic cordova platform rm ios

 

标签: ionic3
  • 打赏
  • 点赞
  • 收藏
  • 分享
共有 人打赏支持
yizhichao
粉丝 10
博文 340
码字总数 271925
×
yizhichao
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: