libpng错误:为android构建离子时读取错误

时间:2016-08-28 16:48:31

标签: android node.js cordova ionic-framework

我为Android构建时遇到此错误 -

ionic build android

错误 -

`AAPT错误(Facade for 259068547):libpng错误:读取错误

AAPT错误(Facade for 1123857185):libpng错误:读取错误

AAPT错误(Facade for 594029608):libpng错误:读取错误

FAILED

FAILURE: 构建因异常而失败。

  • 出了什么问题:

任务执行失败':mergeArmv7DebugResources'。

> 某些文件运算失败,请参阅日志以获取详细信息

  • 尝试:

运行 --stacktrace选项来获取堆栈跟踪。使用--info运行  或--debug选项以获得更多日志输出。

建立失败

总时间:6.193秒

错误:命令的错误代码1:cmd with args:/ s,/ c,“f:\ D \ srcc \ proj \ platforms \ android \ gradlew cdvBuildDebug -b f:\ D \ srcc \ proj \ platforms \ android \ build.gradle - Dorg.gradle.daemon = true -Pandroid.useDeprecatedNdk = true“`

如何找到确切错误或解决此问题?有人请吗?

1 个答案:

答案 0 :(得分:1)

由于我运行ionic resources,我也遇到了这个build fail问题,此时我的离子版本是2.1.1,我发现路径中的一个图像有问题{{1} } incomplete image

运行resources\android\splash并重新安装后,现在版本为2.1.14,然后删除文件夹npm uninstall ionic -g运行resources\androidionic resources android --force,问题就解决了。< / p>

相关问题