ionic3 build error: failed to read PNG signature: file does not start with PNG signature

在ionic3安卓开发中遇到了无法打包生成apk文件的问题。
报错如下 error: failed to read PNG signature: file does not start with PNG signature

经排查发现是权限问题:
macos:
进入platforms文件夹执行:sudo chmod -R 777 android
window:
icacls "C:\path\to\your\file\platforms\android" /grant everyone:F

posted on 2024-06-14 14:04  吴知木  阅读(5)  评论(0编辑  收藏  举报

导航