Ionic Android Build错误:cmd:命令失败,退出代码为1 [解决方案] [英] Ionic Android Build Error: cmd: Command failed with exit code 1 [solution]

查看:75
本文介绍了Ionic Android Build错误:cmd:命令失败,退出代码为1 [解决方案]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是编码和Ionic的新手,但这是我所遇到的问题的一种解决方案,并提供了我的情况的解释.

I'm new to coding and also Ionic, but here is a solution to an issue that I faced, with an explanation for my situation.

我试图 ionic构建android ,但是它给出了一条错误消息,该错误消息以 Command失败,退出代码为1

I tried to ionic build android but it gave out an error message that ended with Command failed with exit code 1

修复方法是将 ionic platform删除android ,然后使用 ionic platform add android 将其重新添加回去.

The fix would be to ionic platform remove android and then add it back again with ionic platform add android.

我认为哪里出错了是我更新了android的xml清单,以更新应用程序的名称.因此,如果您这样做,肯定会为您解决.

Where it went wrong, I think, is that I updated my android's xml manifest, to update the name for the app. So if you did the same, this will definitely solve it for you.

也许有人可以进一步解释,并指出不需要删除平台的解决方法.

Maybe someone out there can explain further, and point out a workaround that doesn't require removing the platform.

推荐答案

只需转到'/home/user/.gradle/wrapper/dists/**'**

删除其中的所有内容

然后再次构建.

这篇关于Ionic Android Build错误:cmd:命令失败,退出代码为1 [解决方案]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆