海公牛
海公牛
  • 发布:2024-07-08 09:54
  • 更新:2024-07-08 09:54
  • 阅读:220

【报Bug】传统打包可以,快速安心打包报错

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

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

HBuilderX类型: 正式

HBuilderX版本号: 4.15

手机系统: Android

手机系统版本号: Android 12

手机厂商: 华为

手机机型: Mate 40 Pro

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

快速安心打包

预期结果:

打包成功,生成本地apk

实际结果:

打包报错,需要选择传统打包。

bug描述:

传统打包可以,快速安心打包报错,错误日志如下:
[Info] 正在制作apk安装包...

[Info] I: Using Apktool 2.6.1 on UNIC54E05B_cm.apk
[Info] I: Loading resource table...
[Info] I: Decoding AndroidManifest.xml with resources...
[Info] I: Loading resource table from file: C:\Users\DogEgg\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:/code/newRepo/ems-device-management/IEI-Mobile/unpackage/cache/wgt/UNIC54E05B/.manifest/icon-android-xxhdpi.png] to [C:/Users/DogEgg/AppData/Local/HBuilder X/AndroidPackWork/cache/UNIC54E05B/packge_cache/NONE/UNIC54E05B_cm/res/drawable-xxhdpi/icon.png]...
[Info] copy file[D:/code/newRepo/ems-device-management/IEI-Mobile/unpackage/cache/wgt/UNIC54E05B/.manifest/icon-android-xxhdpi.png] to [C:/Users/DogEgg/AppData/Local/HBuilder X/AndroidPackWork/cache/UNIC54E05B/packge_cache/NONE/UNIC54E05B_cm/res/drawable-xxhdpi/icon.png] success.
[Info] begin copy file[D:/code/newRepo/ems-device-management/IEI-Mobile/unpackage/cache/wgt/UNIC54E05B/.manifest/icon-android-xxhdpi.png] to [C:/Users/DogEgg/AppData/Local/HBuilder X/AndroidPackWork/cache/UNIC54E05B/packge_cache/NONE/UNIC54E05B_cm/res/drawable-xxhdpi/push.png]...
[Info] copy file[D:/code/newRepo/ems-device-management/IEI-Mobile/unpackage/cache/wgt/UNIC54E05B/.manifest/icon-android-xxhdpi.png] to [C:/Users/DogEgg/AppData/Local/HBuilder X/AndroidPackWork/cache/UNIC54E05B/packge_cache/NONE/UNIC54E05B_cm/res/drawable-xxhdpi/push.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\DogEgg\AppData\Local\HBuilder X\AndroidPackWork\cache__UNIC54E05B\packge_cache__NONE__UNIC54E05B_cm classes.dex file...
[Info] I: Copying C:\Users\DogEgg\AppData\Local\HBuilder X\AndroidPackWork\cache__UNIC54E05B\packge_cache__NONE__UNIC54E05B_cm classes2.dex file...
[Info] I: Checking whether resources has changed...
[Info] I: Building resources...
[Error] W: libpng error: Not a PNG file
[Error] W: ERROR: Failure processing PNG image C:\Users\DogEgg\AppData\Local\HBuilder X\AndroidPackWork\cache__UNIC54E05B\packge_cache__NONE__UNIC54E05B_cm\res\drawable-xxhdpi\icon.png
[Error] W: libpng error: Not a PNG file
[Error] W: ERROR: Failure processing PNG image C:\Users\DogEgg\AppData\Local\HBuilder X\AndroidPackWork\cache__UNIC54E05B\packge_cache__NONE__UNIC54E05B_cm\res\drawable-xxhdpi\push.png
[Error] brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\DogEgg\AppData\Local\Temp\brut_util_Jar_49159735276361558247484046175245784519.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 28, --version-code, 1000044, --version-name, 1.0.44, --no-version-vectors, -F, C:\Users\DogEgg\AppData\Local\Temp\APKTOOL2531099195550312856.tmp, -e, C:\Users\DogEgg\AppData\Local\Temp\APKTOOL16865253751227187067.tmp, -0, arsc, -I, C:\Users\DogEgg\AppData\Local\HBuilder X\AndroidPackWork\apktool\1.apk, -S, C:\Users\DogEgg\AppData\Local\HBuilder X\AndroidPackWork\cache__UNIC54E05B\packge_cache__NONE__UNIC54E05B_cm\res, -M, C:\Users\DogEgg\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI__C54E05B\packge_cache\NONE\UNI__C54E05B_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: libpng error: Not a PNG file
[Error] W: ERROR: Failure processing PNG image C:\Users\DogEgg\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__C54E05B\packge_cache\
NONE\UNI__C54E05B_cm\res\drawable-xxhdpi\icon.png
[Error] W: libpng error: Not a PNG file
[Error] W: ERROR: Failure processing PNG image C:\Users\DogEgg\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__C54E05B\packge_cache\
NONE\UNIC54E05B_cm\res\drawable-xxhdpi\push.png
[Error] brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\DogEgg\AppData\Local\Temp\brut_util_Jar_51502557799615947094987126540656697193.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 28, --version-code, 1000044, --version-name, 1.0.44, --no-version-vectors, -F, C:\Users\DogEgg\AppData\Local\Temp\APKTOOL13835238099850971167.tmp, -e, C:\Users\DogEgg\AppData\Local\Temp\APKTOOL9274412131886704450.tmp, -0, arsc, -I, C:\Users\DogEgg\AppData\Local\HBuilder X\AndroidPackWork\apktool\1.apk, -S, C:\Users\DogEgg\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__C54E05B\packge_cache\
NONE\UNI__C54E05B_cm\res, -M, C:\Users\DogEgg\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__C54E05B\packge_cache\
NONE\UNI__C54E05B_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: libpng error: Not a PNG file
[Error] W: ERROR: Failure processing PNG image C:\Users\DogEgg\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__C54E05B\packge_cache\
NONE\UNI__C54E05B_cm\res\drawable-xxhdpi\icon.png
[Error] W: libpng error: Not a PNG file
[Error] W: ERROR: Failure processing PNG image C:\Users\DogEgg\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__C54E05B\packge_cache\
NONE\UNIC54E05B_cm\res\drawable-xxhdpi\push.png
[Error] brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\DogEgg\AppData\Local\Temp\brut_util_Jar_67133810072664298125423575203273254734.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 28, --version-code, 1000044, --version-name, 1.0.44, --no-version-vectors, -F, C:\Users\DogEgg\AppData\Local\Temp\APKTOOL10885399556481974038.tmp, -e, C:\Users\DogEgg\AppData\Local\Temp\APKTOOL979338963482793330.tmp, -0, arsc, -I, C:\Users\DogEgg\AppData\Local\HBuilder X\AndroidPackWork\apktool\1.apk, -S, C:\Users\DogEgg\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__C54E05B\packge_cache\
NONE\UNI__C54E05B_cm\res, -M, C:\Users\DogEgg\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__C54E05B\packge_cache\
NONE\UNI__C54E05B_cm\AndroidManifest.xml]
[Error] Apk tool compile package to apk failed
[Error] 制作结果:Failed. Reason:

2024-07-08 09:54 负责人:无 分享
已邀请:

要回复问题请先登录注册