我是编码和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 [解决方案]
发布评论