x***@sohu.com
x***@sohu.com
  • 发布:2021-07-21 11:03
  • 更新:2021-07-22 04:19
  • 阅读:541

突然间APP云端打包就失败了

分类:HBuilderX

先来个疑问,为什么云端打包返回失败也算打包次数的呢?

云端打包失败详细信息见以下链接:https://service.dcloud.net.cn/build/errorLog/325e88c0-e9cd-11eb-84d6-4593762c1825

部分错误提示如下:
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeReleaseResources'.

    Multiple task action failures occurred:
    A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
    Android resource compilation failed
    [PackagePath]/app/res/drawable-hdpi/icon.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.

[PackagePath]/app/res/drawable-hdpi/icon.png: AAPT: error: file failed to compile.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource compilation failed
[PackagePath]/app/res/drawable-hdpi/push.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.

[PackagePath]/app/res/drawable-hdpi/push.png: AAPT: error: file failed to compile.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource compilation failed
[PackagePath]/app/res/drawable-xhdpi/icon.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.

[PackagePath]/app/res/drawable-xhdpi/icon.png: AAPT: error: file failed to compile.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource compilation failed
[PackagePath]/app/res/drawable-xhdpi/push.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.

[PackagePath]/app/res/drawable-xhdpi/push.png: AAPT: error: file failed to compile.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource compilation failed
[PackagePath]/app/res/drawable-xxhdpi/icon.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.

[PackagePath]/app/res/drawable-xxhdpi/icon.png: AAPT: error: file failed to compile.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource compilation failed
[PackagePath]/app/res/drawable-xxhdpi/push.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.

[PackagePath]/app/res/drawable-xxhdpi/push.png: AAPT: error: file failed to compile.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource compilation failed
[PackagePath]/app/res/drawable-xxxhdpi/push.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.

[PackagePath]/app/res/drawable-xxxhdpi/push.png: AAPT: error: file failed to compile.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource compilation failed
[PackagePath]/app/res/drawable-xxxhdpi/icon.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.

[PackagePath]/app/res/drawable-xxxhdpi/icon.png: AAPT: error: file failed to compile.

  • Try:
    Run with --debug option to get more log output. Run with --scan to get full insights.
2021-07-21 11:03 负责人:无 分享
已邀请:
DCloud_heavensoft

DCloud_heavensoft

打包是按资源占用估算免费额度。打包虽然失败,但文件也上传了,占用了带宽和服务器资源。

你这个错误,应该是manifest里配置的png图片,不是真正的png图片。用绘图软件另存png试试

该问题目前已经被锁定, 无法添加新回复