打包失败
- 发布:2022-09-17 11:18
- 更新:2022-09-19 17:20
- 阅读:887
产品分类: HTML5+
HBuilderX版本号: 3.6.2
手机系统: Android
手机系统版本号: Android 11
手机厂商: 华为
手机机型: 20220817001
打包方式: 云端
操作步骤:
预期结果:
打包失败
打包失败
实际结果:
打包失败
打包失败
bug描述:
Files\HBuilderX\AndroidPackWork\cache\H55A84283\packge_cache__NONE\H55A84283_cm\AndroidManifest.xml]
[Error] try compile package:1
[Info] I: Using Apktool 2.4.1
[Info] I: Checking whether resources has changed...
[Info] I: Building resources...
[Error] W: D:\Program Files\HBuilderX\AndroidPackWork\cache\H55A84283\packge_cache__NONE__\H55A84283_cm\AndroidManifest.xml:30: Tag <action> attribute name has invalid character ''.
[Error] brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\���Ѽ�\AppData\Local\Temp\brut_util_Jar_17934672455040841458.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 28, --version-code, 100, --version-name, 1.3.1, --no-version-vectors, -F, C:\Users\���Ѽ�\AppData\Local\Temp\APKTOOL12261782274096688099.tmp, -e, C:\Users\���Ѽ�\AppData\Local\Temp\APKTOOL14896547084207692312.tmp, -0, arsc, -I, D:\Program Files\HBuilderX\AndroidPackWork\apktool\1.apk, -S, D:\Program Files\HBuilderX\AndroidPackWork\cache\H55A84283\packge_cache__NONE\H55A84283_cm\res, -M, D:\Program Files\HBuilderX\AndroidPackWork\cache\H55A84283\packge_cache\NONE\H55A84283_cm\AndroidManifest.xml]
[Error] try compile package:2
[Info] I: Using Apktool 2.4.1
[Info] I: Checking whether resources has changed...
[Info] I: Building resources...
[Error] W: D:\Program Files\HBuilderX\AndroidPackWork\cache\H55A84283\packge_cache\NONE__\H55A84283_cm\AndroidManifest.xml:30: Tag <action> attribute name has invalid character ''.
[Error] brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\���Ѽ�\AppData\Local\Temp\brut_util_Jar_4065685021941248514.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 28, --version-code, 100, --version-name, 1.3.1, --no-version-vectors, -F, C:\Users\���Ѽ�\AppData\Local\Temp\APKTOOL12683099539830739358.tmp, -e, C:\Users\���Ѽ�\AppData\Local\Temp\APKTOOL7804252582352474457.tmp, -0, arsc, -I, D:\Program Files\HBuilderX\AndroidPackWork\apktool\1.apk, -S, D:\Program Files\HBuilderX\AndroidPackWork\cache\H55A84283\packge_cache\NONE\H55A84283_cm\res, -M, D:\Program Files\HBuilderX\AndroidPackWork\cache\H55A84283\packge_cache\NONE__\H55A84283_cm\AndroidManifest.xml]
[Error] Apk tool compile package to apk failed
[Error] 制作结果:Failed. Reason:
最佳回复
以下方法,仅适用于HBuilderX 3.6.2、HBuilderX 3.6.3版本
- 关闭HBuilderX,打开HBuilderX安装目录,进入plugins下,删除app-safe-pack目录。
- 重新下载app-safe-pack插件,下载地址
- 下载后,解压
app-safe-pack.zip
,然后将解压后的文件夹
移动到HBuilderX plugins目录。注意:目录名必须是app-safe-pack
- 重启HBuilderX.
4***@qq.com (作者)
按照这方法执行后好使了,谢谢!
2022-09-23 14:58