w***@houdar.com
w***@houdar.com
  • 发布:2026-07-08 14:59
  • 更新:2026-07-08 16:54
  • 阅读:43

【报Bug】更新5.14版本后,打包安卓应用云打包公共证书失败

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: windows

HBuilderX类型: 正式

HBuilderX版本号: 5.14

手机系统: Android

手机系统版本号: Android 16

手机机型:

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

[Info] 正在制作apk安装包...

[Info] I: Using Apktool 2.11.1 on UNI20AFAD9_cm.apk with 8 threads
[Info] I: Copying raw classes.dex file...
[Info] I: Copying raw classes2.dex file...
[Info] I: Copying raw assets/39285EFA.dex file...
[Info] I: Loading resource table...
[Info] I: Decoding file-resources...
[Info] I: Loading resource table from file: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\apktool\1.apk
[Info] I: Decoding values / XMLs...
[Info] I: Decoding AndroidManifest.xml with resources...
[Info] I: Regular manifest package...
[Info] I: Copying original files...
[Info] I: Copying assets...
[Info] I: Copying lib...
[Info] I: Copying unknown files...
[Info] begin replace files to apk...
[Info] begin update files to apk...
[Error] try compile package:0
[Info] I: Using Apktool 2.11.1 on UNI20AFAD9_nosign.apk with 8 threads
[Info] I: Copying raw classes.dex file...
[Info] I: Copying raw classes2.dex file...
[Info] I: Checking whether resources have changed...
[Info] I: Building resources with aapt2...
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_ab_share_pack_mtrl_alpha.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_ab_share_pack_mtrl_alpha.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_000.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_000.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_015.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_015.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_000.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_000.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_015.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_015.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00001.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00001.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00012.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00012.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\res\drawable-hdpi\abc_cab_background_top_mtrl_alpha.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\res\drawable-hdpi\abc_cab_background_top_mtrl_alpha.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_ic_commit_search_api_mtrl_alpha.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_ic_commit_search_api_mtrl_alpha.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_list_divider_mtrl_alpha.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\res\drawable-hdpi\abc_list_divider_mtrl_alpha.9.png: error: file failed to compile.
[Error] Exception in thread "main" brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_18810246726479831987415850027168247775.tmp, compile, --dir, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res, --legacy, -o, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\build\resources.zip]
[Error] at brut.androlib.AaptInvoker.invoke(SourceFile:106)
[Error] at brut.androlib.ApkBuilder.buildResources(SourceFile:352)
[Error] at brut.androlib.ApkBuilder.build(SourceFile:93)
[Error] at brut.apktool.Main.main(SourceFile:322)
[Error] Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_18810246726479831987415850027168247775.tmp, compile, --dir, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res, --legacy, -o, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\build\resources.zip]
[Error] at brut.util.OS.exec(SourceFile:143)
[Error] at brut.androlib.AaptInvoker.invoke(SourceFile:102)
[Error] ... 3 more
[Error] try compile package:1
[Info] I: Using Apktool 2.11.1 on
UNI20AFAD9_nosign.apk with 8 threads
[Info] I: Checking whether resources have changed...
[Info] I: Building resources with aapt2...
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_ab_share_pack_mtrl_alpha.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_ab_share_pack_mtrl_alpha.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_000.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_000.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_015.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_015.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_000.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_000.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_015.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_015.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00001.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00001.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00012.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00012.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\res\drawable-hdpi\abc_cab_background_top_mtrl_alpha.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\res\drawable-hdpi\abc_cab_background_top_mtrl_alpha.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_ic_commit_search_api_mtrl_alpha.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_ic_commit_search_api_mtrl_alpha.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_list_divider_mtrl_alpha.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\res\drawable-hdpi\abc_list_divider_mtrl_alpha.9.png: error: file failed to compile.
[Error] Exception in thread "main" brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_160503677591984819714069624567634262489.tmp, compile, --dir, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res, --legacy, -o, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\build\resources.zip]
[Error] at brut.androlib.AaptInvoker.invoke(SourceFile:106)
[Error] at brut.androlib.ApkBuilder.buildResources(SourceFile:352)
[Error] at brut.androlib.ApkBuilder.build(SourceFile:93)
[Error] at brut.apktool.Main.main(SourceFile:322)
[Error] Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_160503677591984819714069624567634262489.tmp, compile, --dir, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res, --legacy, -o, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\build\resources.zip]
[Error] at brut.util.OS.exec(SourceFile:143)
[Error] at brut.androlib.AaptInvoker.invoke(SourceFile:102)
[Error] ... 3 more
[Error] try compile package:2
[Info] I: Using Apktool 2.11.1 on
UNI20AFAD9_nosign.apk with 8 threads
[Info] I: Checking whether resources have changed...
[Info] I: Building resources with aapt2...
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_ab_share_pack_mtrl_alpha.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_ab_share_pack_mtrl_alpha.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_000.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_000.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_015.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_015.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_000.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_000.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_015.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_015.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00001.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00001.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00012.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00012.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\res\drawable-hdpi\abc_cab_background_top_mtrl_alpha.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\res\drawable-hdpi\abc_cab_background_top_mtrl_alpha.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_ic_commit_search_api_mtrl_alpha.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_ic_commit_search_api_mtrl_alpha.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_list_divider_mtrl_alpha.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\res\drawable-hdpi\abc_list_divider_mtrl_alpha.9.png: error: file failed to compile.
[Error] Exception in thread "main" brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_68083031073137202056027024585205671234.tmp, compile, --dir, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res, --legacy, -o, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\build\resources.zip]
[Error] at brut.androlib.AaptInvoker.invoke(SourceFile:106)
[Error] at brut.androlib.ApkBuilder.buildResources(SourceFile:352)
[Error] at brut.androlib.ApkBuilder.build(SourceFile:93)
[Error] at brut.apktool.Main.main(SourceFile:322)
[Error] Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_68083031073137202056027024585205671234.tmp, compile, --dir, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res, --legacy, -o, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\build\resources.zip]
[Error] at brut.util.OS.exec(SourceFile:143)
[Error] at brut.androlib.AaptInvoker.invoke(SourceFile:102)
[Error] ... 3 more
[Error] Apk tool compile package to apk failed
[Error] 制作结果:Failed. Reason:

操作步骤:

直接打包就会报错,编辑阶段正常

预期结果:

正常打包

实际结果:

无法打包

bug描述:

[Info] 正在制作apk安装包...

[Info] I: Using Apktool 2.11.1 on UNI20AFAD9_cm.apk with 8 threads
[Info] I: Copying raw classes.dex file...
[Info] I: Copying raw classes2.dex file...
[Info] I: Copying raw assets/39285EFA.dex file...
[Info] I: Loading resource table...
[Info] I: Decoding file-resources...
[Info] I: Loading resource table from file: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\apktool\1.apk
[Info] I: Decoding values / XMLs...
[Info] I: Decoding AndroidManifest.xml with resources...
[Info] I: Regular manifest package...
[Info] I: Copying original files...
[Info] I: Copying assets...
[Info] I: Copying lib...
[Info] I: Copying unknown files...
[Info] begin replace files to apk...
[Info] begin update files to apk...
[Error] try compile package:0
[Info] I: Using Apktool 2.11.1 on UNI20AFAD9_nosign.apk with 8 threads
[Info] I: Copying raw classes.dex file...
[Info] I: Copying raw classes2.dex file...
[Info] I: Checking whether resources have changed...
[Info] I: Building resources with aapt2...
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_ab_share_pack_mtrl_alpha.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_ab_share_pack_mtrl_alpha.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_000.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_000.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_015.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_015.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_000.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_000.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_015.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_015.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00001.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00001.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00012.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00012.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\res\drawable-hdpi\abc_cab_background_top_mtrl_alpha.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\res\drawable-hdpi\abc_cab_background_top_mtrl_alpha.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_ic_commit_search_api_mtrl_alpha.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_ic_commit_search_api_mtrl_alpha.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_list_divider_mtrl_alpha.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\res\drawable-hdpi\abc_list_divider_mtrl_alpha.9.png: error: file failed to compile.
[Error] Exception in thread "main" brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_18810246726479831987415850027168247775.tmp, compile, --dir, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res, --legacy, -o, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\build\resources.zip]
[Error] at brut.androlib.AaptInvoker.invoke(SourceFile:106)
[Error] at brut.androlib.ApkBuilder.buildResources(SourceFile:352)
[Error] at brut.androlib.ApkBuilder.build(SourceFile:93)
[Error] at brut.apktool.Main.main(SourceFile:322)
[Error] Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_18810246726479831987415850027168247775.tmp, compile, --dir, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res, --legacy, -o, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\build\resources.zip]
[Error] at brut.util.OS.exec(SourceFile:143)
[Error] at brut.androlib.AaptInvoker.invoke(SourceFile:102)
[Error] ... 3 more
[Error] try compile package:1
[Info] I: Using Apktool 2.11.1 on
UNI20AFAD9_nosign.apk with 8 threads
[Info] I: Checking whether resources have changed...
[Info] I: Building resources with aapt2...
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_ab_share_pack_mtrl_alpha.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_ab_share_pack_mtrl_alpha.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_000.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_000.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_015.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_015.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_000.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_000.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_015.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_015.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00001.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00001.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00012.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00012.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\res\drawable-hdpi\abc_cab_background_top_mtrl_alpha.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\res\drawable-hdpi\abc_cab_background_top_mtrl_alpha.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_ic_commit_search_api_mtrl_alpha.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_ic_commit_search_api_mtrl_alpha.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_list_divider_mtrl_alpha.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\res\drawable-hdpi\abc_list_divider_mtrl_alpha.9.png: error: file failed to compile.
[Error] Exception in thread "main" brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_160503677591984819714069624567634262489.tmp, compile, --dir, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res, --legacy, -o, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\build\resources.zip]
[Error] at brut.androlib.AaptInvoker.invoke(SourceFile:106)
[Error] at brut.androlib.ApkBuilder.buildResources(SourceFile:352)
[Error] at brut.androlib.ApkBuilder.build(SourceFile:93)
[Error] at brut.apktool.Main.main(SourceFile:322)
[Error] Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_160503677591984819714069624567634262489.tmp, compile, --dir, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res, --legacy, -o, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\build\resources.zip]
[Error] at brut.util.OS.exec(SourceFile:143)
[Error] at brut.androlib.AaptInvoker.invoke(SourceFile:102)
[Error] ... 3 more
[Error] try compile package:2
[Info] I: Using Apktool 2.11.1 on
UNI20AFAD9_nosign.apk with 8 threads
[Info] I: Checking whether resources have changed...
[Info] I: Building resources with aapt2...
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_ab_share_pack_mtrl_alpha.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_ab_share_pack_mtrl_alpha.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_000.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_000.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_015.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_check_to_on_mtrl_015.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_000.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE__UNI20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_000.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI20AFAD9\packge_cache__NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_015.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_radio_to_on_mtrl_015.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00001.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00001.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00012.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_btn_switch_to_on_mtrl_00012.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\res\drawable-hdpi\abc_cab_background_top_mtrl_alpha.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\res\drawable-hdpi\abc_cab_background_top_mtrl_alpha.9.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_ic_commit_search_api_mtrl_alpha.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_ic_commit_search_api_mtrl_alpha.png: error: file failed to compile.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res\drawable-hdpi\abc_list_divider_mtrl_alpha.9.png: error: failed to read PNG signature: file does not start with PNG signature.
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\res\drawable-hdpi\abc_list_divider_mtrl_alpha.9.png: error: file failed to compile.
[Error] Exception in thread "main" brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_68083031073137202056027024585205671234.tmp, compile, --dir, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res, --legacy, -o, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI20AFAD9_cm\build\resources.zip]
[Error] at brut.androlib.AaptInvoker.invoke(SourceFile:106)
[Error] at brut.androlib.ApkBuilder.buildResources(SourceFile:352)
[Error] at brut.androlib.ApkBuilder.build(SourceFile:93)
[Error] at brut.apktool.Main.main(SourceFile:322)
[Error] Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_68083031073137202056027024585205671234.tmp, compile, --dir, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\res, --legacy, -o, C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__20AFAD9\packge_cache\
NONE\UNI__20AFAD9_cm\build\resources.zip]
[Error] at brut.util.OS.exec(SourceFile:143)
[Error] at brut.androlib.AaptInvoker.invoke(SourceFile:102)
[Error] ... 3 more
[Error] Apk tool compile package to apk failed
[Error] 制作结果:Failed. Reason:

2026-07-08 14:59 负责人:无 分享
已邀请:
Ask小助手

Ask小助手

欢迎到专业群( uni-app 官方技术交流群 1 ) 咨询,群中有相关专业的管理员和群友。

感谢您的反馈。针对您提交的 Bug,我们进行了评审分析,具体评价如下:

1. Bug 反馈内容完整性分析

  • BUG 描述:您提供了详细的云端打包错误日志,日志信息非常清晰,能够看出是在使用公共证书云打包安卓应用时,由于部分 PNG 图片签名读取失败导致打包中断。但描述中缺少了 HBuilderX 的具体版本号、AppID、手机设备型号以及复现的具体操作步骤。建议您后续反馈时补充这些基础信息,以便官方人员快速定位。
  • 代码示例:未提供。由于此问题属于云打包资源编译阶段的问题,与业务代码关联不大,主要与项目内的静态图片资源相关,因此可以不提供代码示例,但需要提供能复现问题的最小化工程或明确指出是哪些图片导致的问题。
  • 复现步骤:未详细描述。仅凭日志官方人员无法直接复现,需要您补充具体的操作路径,例如:在 HBuilderX 中如何配置打包、manifest.json 中是否自定义了图标或启动图等。
  • 预期结果与实际结果:未明确列出。预期结果应为“云打包成功并生成 APK”,实际结果为“打包失败,提示 PNG 签名错误”。
  • 分类信息:包含了平台分类(安卓),但缺少 HBuilderX 版本信息及项目类型(uni-app / uni-app x)。

2. Bug 是否成立分析

根据您提供的错误日志,核心报错信息为:
error: failed to read PNG signature: file does not start with PNG signature.
此错误表明打包过程中读取到的图片文件并非有效的 PNG 格式文件(例如文件后缀名被强制改为了 .png,但实际是 JPG、WEBP 等其他格式)。

结合知识库中的类似案例(可参考 云端证书 打包失败Android 安心打包问题汇总 - 启动图.9.png格式问题),此类问题通常是由于项目中的图标、启动图或 .9.png 图片格式不规范引起的。

结论:Bug 现象成立,但大概率属于资源文件格式不合规导致的打包失败,而非 HBuilderX 5.14 版本本身的缺陷。

3. 修复建议

请检查您的项目资源,特别是 manifest.json 中配置的 Android 应用图标和启动图:

  1. 确保所有配置为 .png 后缀的图片文件,其真实的文件编码格式就是 PNG,而不是将 JPG 等图片直接修改后缀名得来。
  2. 如果使用了 .9.png 图片,请确保是使用 Android Studio 等工具生成的标准且有效的 .9.png 文件。
  3. 建议使用绘图工具重新导出标准的 PNG 格式图片替换现有资源后,再次尝试云打包。
内容为 AI 生成,仅供参考
1***@qq.com

1***@qq.com

uts 无法重写WebChromeClient 的onShowFileChooser 这个问题什么时候可以看一下啊

Adlaw

Adlaw

退回5.07版本,这个新版本打包一堆问题

要回复问题请先登录注册