9***@qq.com
9***@qq.com
  • 发布:2025-07-21 10:19
  • 更新:2025-07-30 11:39
  • 阅读:108

【报Bug】app云打包失败,本地安装包生成失败,请重试或者切换到非安心打包模式进行打包

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

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

HBuilderX类型: 正式

HBuilderX版本号: 4.75

手机系统: Android

手机系统版本号: Android 16

手机厂商: 华为

手机机型: 荣耀

页面类型: vue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

发行-云打包

预期结果:

打包apk成功

实际结果:

打包apk失败

bug描述:

错误日志如下:
[Info] 正在制作apk安装包...

[Info] I: Using Apktool 2.11.1 on UNI9A103CF_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\admin\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 copy file[D:/Documents/app-ShareBabyCar/unpackage/cache/wgt/UNI9A103CF/.manifest/icon-android-hdpi.png] to [C:/Users/admin/AppData/Local/HBuilder X/AndroidPackWork/cache/UNI9A103CF/packge_cache/NONE/UNI9A103CF_cm/res/drawable-hdpi/icon.png]...
[Info] copy file[D:/Documents/app-ShareBabyCar/unpackage/cache/wgt/UNI9A103CF/.manifest/icon-android-hdpi.png] to [C:/Users/admin/AppData/Local/HBuilder X/AndroidPackWork/cache/UNI9A103CF/packge_cache/NONE/UNI9A103CF_cm/res/drawable-hdpi/icon.png] success.
[Info] begin copy file[D:/Documents/app-ShareBabyCar/unpackage/cache/wgt/UNI9A103CF/.manifest/icon-android-xhdpi.png] to [C:/Users/admin/AppData/Local/HBuilder X/AndroidPackWork/cache/UNI9A103CF/packge_cache/NONE/UNI9A103CF_cm/res/drawable-xhdpi/icon.png]...
[Info] copy file[D:/Documents/app-ShareBabyCar/unpackage/cache/wgt/UNI9A103CF/.manifest/icon-android-xhdpi.png] to [C:/Users/admin/AppData/Local/HBuilder X/AndroidPackWork/cache/UNI9A103CF/packge_cache/NONE/UNI9A103CF_cm/res/drawable-xhdpi/icon.png] success.
[Info] begin copy file[D:/Documents/app-ShareBabyCar/unpackage/cache/wgt/UNI9A103CF/.manifest/icon-android-xxhdpi.png] to [C:/Users/admin/AppData/Local/HBuilder X/AndroidPackWork/cache/UNI9A103CF/packge_cache/NONE/UNI9A103CF_cm/res/drawable-xxhdpi/icon.png]...
[Info] copy file[D:/Documents/app-ShareBabyCar/unpackage/cache/wgt/UNI9A103CF/.manifest/icon-android-xxhdpi.png] to [C:/Users/admin/AppData/Local/HBuilder X/AndroidPackWork/cache/UNI9A103CF/packge_cache/NONE/UNI9A103CF_cm/res/drawable-xxhdpi/icon.png] success.
[Info] begin copy file[D:/Documents/app-ShareBabyCar/unpackage/cache/wgt/UNI9A103CF/.manifest/icon-android-xxxhdpi.png] to [C:/Users/admin/AppData/Local/HBuilder X/AndroidPackWork/cache/UNI9A103CF/packge_cache/NONE/UNI9A103CF_cm/res/drawable-xxxhdpi/icon.png]...
[Info] copy file[D:/Documents/app-ShareBabyCar/unpackage/cache/wgt/UNI9A103CF/.manifest/icon-android-xxxhdpi.png] to [C:/Users/admin/AppData/Local/HBuilder X/AndroidPackWork/cache/UNI9A103CF/packge_cache/NONE/UNI9A103CF_cm/res/drawable-xxxhdpi/icon.png] success.
[Info] begin update files to apk...
[Error] try compile package:0
[Info] I: Using Apktool 2.11.1 on UNI9A103CF_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: error: invalid manifest package override '~'.
[Error] Exception in thread "main" brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\admin\AppData\Local\Temp\brut_util_Jar_52582593991115254425808798040339797174.tmp, link, -o, C:\Users\admin\AppData\Local\Temp\APKTOOL10322421090062673943.tmp, --allow-reserved-package-id, --package-id, 127, --min-sdk-version, 21, --target-sdk-version, 28, --rename-manifest-package, ~, --rename-instrumentation-target-package, ~, --version-code, 107, --version-name, 1.0.7, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --no-compile-sdk-metadata, --warn-manifest-validation, -I, C:\Users\admin\AppData\Local\HBuilder X\AndroidPackWork\apktool\1.apk, --manifest, C:\Users\admin\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI9A103CF\packge_cache__NONE__UNI9A103CF_cm\AndroidManifest.xml, C:\Users\admin\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI9A103CF\packge_cache__NONE\UNI9A103CF_cm\build\resources.zip]
[Error] at brut.androlib.AaptInvoker.invoke(SourceFile:213)
[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\admin\AppData\Local\Temp\brut_util_Jar_52582593991115254425808798040339797174.tmp, link, -o, C:\Users\admin\AppData\Local\Temp\APKTOOL10322421090062673943.tmp, --allow-reserved-package-id, --package-id, 127, --min-sdk-version, 21, --target-sdk-version, 28, --rename-manifest-package, ~, --rename-instrumentation-target-package, ~, --version-code, 107, --version-name, 1.0.7, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --no-compile-sdk-metadata, --warn-manifest-validation, -I, C:\Users\admin\AppData\Local\HBuilder X\AndroidPackWork\apktool\1.apk, --manifest, C:\Users\admin\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9A103CF\packge_cache\
NONE\UNI__9A103CF_cm\AndroidManifest.xml, C:\Users\admin\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9A103CF\packge_cache\
NONE\UNI__9A103CF_cm\build\resources.zip]
[Error] at brut.util.OS.exec(SourceFile:143)
[Error] at brut.androlib.AaptInvoker.invoke(SourceFile:209)
[Error] ... 3 more
[Error] try compile package:1
[Info] I: Using Apktool 2.11.1 on
UNI9A103CF_nosign.apk with 8 threads
[Info] I: Checking whether resources have changed...
[Info] I: Building resources with aapt2...
[Error] W: error: invalid manifest package override '~'.
[Error] Exception in thread "main" brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\admin\AppData\Local\Temp\brut_util_Jar_15073504745428907327950302811477405733.tmp, link, -o, C:\Users\admin\AppData\Local\Temp\APKTOOL8471155394279095580.tmp, --allow-reserved-package-id, --package-id, 127, --min-sdk-version, 21, --target-sdk-version, 28, --rename-manifest-package, ~, --rename-instrumentation-target-package, ~, --version-code, 107, --version-name, 1.0.7, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --no-compile-sdk-metadata, --warn-manifest-validation, -I, C:\Users\admin\AppData\Local\HBuilder X\AndroidPackWork\apktool\1.apk, --manifest, C:\Users\admin\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI9A103CF\packge_cache__NONE__UNI9A103CF_cm\AndroidManifest.xml, C:\Users\admin\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI__9A103CF\packge_cache__NONE\UNI9A103CF_cm\build\resources.zip]
[Error] at brut.androlib.AaptInvoker.invoke(SourceFile:213)
[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\admin\AppData\Local\Temp\brut_util_Jar_15073504745428907327950302811477405733.tmp, link, -o, C:\Users\admin\AppData\Local\Temp\APKTOOL8471155394279095580.tmp, --allow-reserved-package-id, --package-id, 127, --min-sdk-version, 21, --target-sdk-version, 28, --rename-manifest-package, ~, --rename-instrumentation-target-package, ~, --version-code, 107, --version-name, 1.0.7, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --no-compile-sdk-metadata, --warn-manifest-validation, -I, C:\Users\admin\AppData\Local\HBuilder X\AndroidPackWork\apktool\1.apk, --manifest, C:\Users\admin\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9A103CF\packge_cache\
NONE\UNI__9A103CF_cm\AndroidManifest.xml, C:\Users\admin\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9A103CF\packge_cache\
NONE\UNI__9A103CF_cm\build\resources.zip]
[Error] at brut.util.OS.exec(SourceFile:143)
[Error] at brut.androlib.AaptInvoker.invoke(SourceFile:209)
[Error] ... 3 more
[Error] try compile package:2
[Info] I: Using Apktool 2.11.1 on
UNI9A103CF_nosign.apk with 8 threads
[Info] I: Checking whether resources have changed...
[Info] I: Building resources with aapt2...
[Error] W: error: invalid manifest package override '~'.
[Error] Exception in thread "main" brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\admin\AppData\Local\Temp\brut_util_Jar_59425792566979788934886820320149615169.tmp, link, -o, C:\Users\admin\AppData\Local\Temp\APKTOOL13710440091285687618.tmp, --allow-reserved-package-id, --package-id, 127, --min-sdk-version, 21, --target-sdk-version, 28, --rename-manifest-package, ~, --rename-instrumentation-target-package, ~, --version-code, 107, --version-name, 1.0.7, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --no-compile-sdk-metadata, --warn-manifest-validation, -I, C:\Users\admin\AppData\Local\HBuilder X\AndroidPackWork\apktool\1.apk, --manifest, C:\Users\admin\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI9A103CF\packge_cache__NONE__UNI9A103CF_cm\AndroidManifest.xml, C:\Users\admin\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI__9A103CF\packge_cache\NONE\UNI9A103CF_cm\build\resources.zip]
[Error] at brut.androlib.AaptInvoker.invoke(SourceFile:213)
[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\admin\AppData\Local\Temp\brut_util_Jar_59425792566979788934886820320149615169.tmp, link, -o, C:\Users\admin\AppData\Local\Temp\APKTOOL13710440091285687618.tmp, --allow-reserved-package-id, --package-id, 127, --min-sdk-version, 21, --target-sdk-version, 28, --rename-manifest-package, ~, --rename-instrumentation-target-package, ~, --version-code, 107, --version-name, 1.0.7, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --no-compile-sdk-metadata, --warn-manifest-validation, -I, C:\Users\admin\AppData\Local\HBuilder X\AndroidPackWork\apktool\1.apk, --manifest, C:\Users\admin\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9A103CF\packge_cache\
NONE\UNI__9A103CF_cm\AndroidManifest.xml, C:\Users\admin\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__9A103CF\packge_cache\
NONE\UNI__9A103CF_cm\build\resources.zip]
[Error] at brut.util.OS.exec(SourceFile:143)
[Error] at brut.androlib.AaptInvoker.invoke(SourceFile:209)
[Error] ... 3 more
[Error] Apk tool compile package to apk failed
[Error] 制作结果:Failed. Reason:

2025-07-21 10:19 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com

对,我也是一样的错误日志,昨天打包还好着呢,今天尝试就这样的报错,运行试了下没有任何问题

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

    现在我都只能用传统打包,每天限制5次,不然打不了包

    2025-08-07 09:09

要回复问题请先登录注册