3***@qq.com
3***@qq.com
  • 发布:2024-03-28 19:02
  • 更新:2024-03-30 15:22
  • 阅读:94

打包APK使用自定义的.9.png打包报错

分类:HBuilderX

打包APK使用自定义的.9.png打包报错,错误信息如下,请问怎么解决?

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

[Info] I: Using Apktool 2.6.1 on UNI9031D0A_cm.apk
[Info] I: Loading resource table...
[Info] I: Decoding AndroidManifest.xml with resources...
[Info] I: Loading resource table from file: C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\apktool\1.apk
[Info] I: Regular manifest package...
[Info] I: Decoding file-resources...
[Info] I: Decoding values / XMLs...
[Info] I: Copying raw classes.dex file...
[Info] I: Copying raw classes2.dex file...
[Info] I: Copying raw assets/39285EFA.dex file...
[Info] I: Copying assets and libs...
[Info] I: Copying unknown files...
[Info] I: Copying original files...
[Info] I: Copying META-INF/services directory
[Info] begin replace files to apk...
[Info] begin copy file[D:/Work/test/unpackage/cache/wgt/UNI9031D0A/.manifest/splash-android-hdpi.9.png] to [C:/Users/EDY/AppData/Local/HBuilder X/AndroidPackWork/cache/UNI9031D0A/packge_cache/NONE/UNI9031D0A_cm/res/drawable-hdpi/splash.9.png]...
[Info] copy file[D:/Work/test/unpackage/cache/wgt/UNI9031D0A/.manifest/splash-android-hdpi.9.png] to [C:/Users/EDY/AppData/Local/HBuilder X/AndroidPackWork/cache/UNI9031D0A/packge_cache/NONE/UNI9031D0A_cm/res/drawable-hdpi/splash.9.png] success.
[Info] begin copy file[D:/Work/test/unpackage/cache/wgt/UNI9031D0A/.manifest/splash-android-xhdpi.9.png] to [C:/Users/EDY/AppData/Local/HBuilder X/AndroidPackWork/cache/UNI9031D0A/packge_cache/NONE/UNI9031D0A_cm/res/drawable-xhdpi/splash.9.png]...
[Info] copy file[D:/Work/test/unpackage/cache/wgt/UNI9031D0A/.manifest/splash-android-xhdpi.9.png] to [C:/Users/EDY/AppData/Local/HBuilder X/AndroidPackWork/cache/UNI9031D0A/packge_cache/NONE/UNI9031D0A_cm/res/drawable-xhdpi/splash.9.png] success.
[Info] begin copy file[D:/Work/test/unpackage/cache/wgt/UNI9031D0A/.manifest/splash-android-xxhdpi.9.png] to [C:/Users/EDY/AppData/Local/HBuilder X/AndroidPackWork/cache/UNI9031D0A/packge_cache/NONE/UNI9031D0A_cm/res/drawable-xxhdpi/splash.9.png]...
[Info] copy file[D:/Work/test/unpackage/cache/wgt/UNI9031D0A/.manifest/splash-android-xxhdpi.9.png] to [C:/Users/EDY/AppData/Local/HBuilder X/AndroidPackWork/cache/UNI9031D0A/packge_cache/NONE/UNI9031D0A_cm/res/drawable-xxhdpi/splash.9.png] success.
[Info] begin update files to apk...
[Error] try compile package:0
[Info] I: Using Apktool 2.6.1
[Info] I: Copying C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI9031D0A\packge_cache__NONE__UNI9031D0A_cm classes.dex file...
[Info] I: Copying C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI9031D0A\packge_cache__NONE__UNI9031D0A_cm classes2.dex file...
[Info] I: Checking whether resources has changed...
[Info] I: Building resources...
[Error] W: ERROR: 9-patch image C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI9031D0A\packge_cache__NONE__UNI9031D0A_cm\res\drawable-hdpi\splash.9.png malformed.
[Error] W: Can't have more than one marked region along edge.
[Error] W: Found at pixel #0 along bottom edge.
[Error] W: ERROR: Failure processing PNG image C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI9031D0A\packge_cache__NONE__UNI9031D0A_cm\res\drawable-hdpi\splash.9.png
[Error] W: ERROR: 9-patch image C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI9031D0A\packge_cache__NONE__UNI9031D0A_cm\res\drawable-xhdpi\splash.9.png malformed.
[Error] W: Can't have more than one marked region along edge.
[Error] W: Found at pixel #0 along bottom edge.
[Error] W: ERROR: Failure processing PNG image C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI9031D0A\packge_cache__NONE__UNI9031D0A_cm\res\drawable-xhdpi\splash.9.png
[Error] W: ERROR: 9-patch image C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI9031D0A\packge_cache__NONE__UNI9031D0A_cm\res\drawable-xxhdpi\splash.9.png malformed.
[Error] W: Can't have more than one marked region along edge.
[Error] W: Found at pixel #0 along bottom edge.
[Error] W: ERROR: Failure processing PNG image C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI9031D0A\packge_cache__NONE__UNI9031D0A_cm\res\drawable-xxhdpi\splash.9.png
[Error] brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\EDY\AppData\Local\Temp\brut_util_Jar_12106558035200956125704233286671666603.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 28, --version-code, 100, --version-name, 1.0.0, --no-version-vectors, -F, C:\Users\EDY\AppData\Local\Temp\APKTOOL2726297245160962373.tmp, -e, C:\Users\EDY\AppData\Local\Temp\APKTOOL13334511075693115245.tmp, -0, arsc, -I, C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\apktool\1.apk, -S, C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI9031D0A\packge_cache__NONE__UNI9031D0A_cm\res, -M, C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI9031D0A\packge_cache__NONE__UNI__9031D0A_cm\AndroidManifest.xml]
[Error] try compile package:1
[Info] I: Using Apktool 2.6.1
[Info] I: Checking whether resources has changed...
[Info] I: Building resources...
[Error] W: ERROR: 9-patch image C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI__9031D0A\packge_cache\
NONE\UNI__9031D0A_cm\res\drawable-hdpi\splash.9.png malformed.
[Error] W: Can't have more than one marked region along edge.
[Error] W: Found at pixel #0 along bottom edge.
[Error] W: ERROR: Failure processing PNG image C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9031D0A\packge_cache\
NONE\UNI__9031D0A_cm\res\drawable-hdpi\splash.9.png
[Error] W: ERROR: 9-patch image C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9031D0A\packge_cache\
NONE\UNI__9031D0A_cm\res\drawable-xhdpi\splash.9.png malformed.
[Error] W: Can't have more than one marked region along edge.
[Error] W: Found at pixel #0 along bottom edge.
[Error] W: ERROR: Failure processing PNG image C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9031D0A\packge_cache\
NONE\UNI__9031D0A_cm\res\drawable-xhdpi\splash.9.png
[Error] W: ERROR: 9-patch image C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9031D0A\packge_cache\
NONE\UNI__9031D0A_cm\res\drawable-xxhdpi\splash.9.png malformed.
[Error] W: Can't have more than one marked region along edge.
[Error] W: Found at pixel #0 along bottom edge.
[Error] W: ERROR: Failure processing PNG image C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9031D0A\packge_cache\
NONE\UNI9031D0A_cm\res\drawable-xxhdpi\splash.9.png
[Error] brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\EDY\AppData\Local\Temp\brut_util_Jar_16400517658931511781245416110800594412.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 28, --version-code, 100, --version-name, 1.0.0, --no-version-vectors, -F, C:\Users\EDY\AppData\Local\Temp\APKTOOL7007651126067652527.tmp, -e, C:\Users\EDY\AppData\Local\Temp\APKTOOL15194122303796500670.tmp, -0, arsc, -I, C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\apktool\1.apk, -S, C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9031D0A\packge_cache\
NONE\UNI__9031D0A_cm\res, -M, C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9031D0A\packge_cache\
NONE\UNI__9031D0A_cm\AndroidManifest.xml]
[Error] try compile package:2
[Info] I: Using Apktool 2.6.1
[Info] I: Checking whether resources has changed...
[Info] I: Building resources...
[Error] W: ERROR: 9-patch image C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9031D0A\packge_cache\
NONE\UNI__9031D0A_cm\res\drawable-hdpi\splash.9.png malformed.
[Error] W: Can't have more than one marked region along edge.
[Error] W: Found at pixel #0 along bottom edge.
[Error] W: ERROR: Failure processing PNG image C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9031D0A\packge_cache\
NONE\UNI__9031D0A_cm\res\drawable-hdpi\splash.9.png
[Error] W: ERROR: 9-patch image C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9031D0A\packge_cache\
NONE\UNI__9031D0A_cm\res\drawable-xhdpi\splash.9.png malformed.
[Error] W: Can't have more than one marked region along edge.
[Error] W: Found at pixel #0 along bottom edge.
[Error] W: ERROR: Failure processing PNG image C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9031D0A\packge_cache\
NONE\UNI__9031D0A_cm\res\drawable-xhdpi\splash.9.png
[Error] W: ERROR: 9-patch image C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9031D0A\packge_cache\
NONE\UNI__9031D0A_cm\res\drawable-xxhdpi\splash.9.png malformed.
[Error] W: Can't have more than one marked region along edge.
[Error] W: Found at pixel #0 along bottom edge.
[Error] W: ERROR: Failure processing PNG image C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9031D0A\packge_cache\
NONE\UNI9031D0A_cm\res\drawable-xxhdpi\splash.9.png
[Error] brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\EDY\AppData\Local\Temp\brut_util_Jar_129736041456427447131274145183986791481.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 28, --version-code, 100, --version-name, 1.0.0, --no-version-vectors, -F, C:\Users\EDY\AppData\Local\Temp\APKTOOL435373891974343071.tmp, -e, C:\Users\EDY\AppData\Local\Temp\APKTOOL11266767960052609153.tmp, -0, arsc, -I, C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\apktool\1.apk, -S, C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9031D0A\packge_cache\
NONE\UNI__9031D0A_cm\res, -M, C:\Users\EDY\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9031D0A\packge_cache\
NONE\UNI__9031D0A_cm\AndroidManifest.xml]
[Error] Apk tool compile package to apk failed
[Error] 制作结果:Failed. Reason:

2024-03-28 19:02 负责人:无 分享
已邀请:
3***@qq.com

3***@qq.com (作者) - others

自定义启动页使用.9.png图片报错,请问怎么解决?

前端匠人

前端匠人

我也遇到这个问题,同问

  • 3***@qq.com (作者)

    后面发现是我自己制作的.9.png图片的问题,我重新看视频制作图片就可以了【哭笑】

    2024-04-03 17:07

喜欢技术的前端

喜欢技术的前端 - QQ---445849201

  • 3***@qq.com (作者)

    说到底,还是对制作.9.png不了解【哭笑】

    2024-04-03 17:08

要回复问题请先登录注册