1***@163.com
1***@163.com
  • 发布:2021-10-26 11:06
  • 更新:2021-10-26 11:07
  • 阅读:891

【报Bug】Android 安心打包失败,提示AndroidManifest.xml:32: Tag attribute name has invalid character ' '.

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Mac

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

HBuilderX版本号: 3.2.11

操作步骤:

正常打包

预期结果:

打包成功

实际结果:

打包失败,错误日志提示AndroidManifest.xml:32: Tag attribute name has invalid character ' '.

bug描述:

Android 安心打包失败,提示AndroidManifest.xml:32: Tag attribute name has invalid character ' '.

2021-10-26 11:06 负责人:无 分享
已邀请:
1***@163.com

1***@163.com (作者)

日志为:

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

[Info] I: Using Apktool 2.4.1 on UNI63AE0B2_cm.apk
[Info] I: Loading resource table...
[Info] I: Decoding AndroidManifest.xml with resources...
[Info] I: Loading resource table from file: /Users/morelearn/Library/apktool/framework/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 classes3.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] begin replace files to apk...
[Info] begin copy file[/Users/morelearn/works/chemi/code/chemi3-app/unpackage/cache/wgt/UNI63AE0B2/.manifest/icon-android-hdpi.png] to [/Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm/res/drawable-hdpi/icon.png]...
[Info] copy file[/Users/morelearn/works/chemi/code/chemi3-app/unpackage/cache/wgt/UNI63AE0B2/.manifest/icon-android-hdpi.png] to [/Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm/res/drawable-hdpi/icon.png] success.
[Info] begin copy file[/Users/morelearn/works/chemi/code/chemi3-app/unpackage/cache/wgt/UNI63AE0B2/.manifest/icon-android-xhdpi.png] to [/Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm/res/drawable-xhdpi/icon.png]...
[Info] copy file[/Users/morelearn/works/chemi/code/chemi3-app/unpackage/cache/wgt/UNI63AE0B2/.manifest/icon-android-xhdpi.png] to [/Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm/res/drawable-xhdpi/icon.png] success.
[Info] begin copy file[/Users/morelearn/works/chemi/code/chemi3-app/unpackage/cache/wgt/UNI63AE0B2/.manifest/icon-android-xxhdpi.png] to [/Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm/res/drawable-xxhdpi/icon.png]...
[Info] copy file[/Users/morelearn/works/chemi/code/chemi3-app/unpackage/cache/wgt/UNI63AE0B2/.manifest/icon-android-xxhdpi.png] to [/Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm/res/drawable-xxhdpi/icon.png] success.
[Info] begin copy file[/Users/morelearn/works/chemi/code/chemi3-app/unpackage/cache/wgt/UNI63AE0B2/.manifest/icon-android-xxxhdpi.png] to [/Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm/res/drawable-xxxhdpi/icon.png]...
[Info] copy file[/Users/morelearn/works/chemi/code/chemi3-app/unpackage/cache/wgt/UNI63AE0B2/.manifest/icon-android-xxxhdpi.png] to [/Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm/res/drawable-xxxhdpi/icon.png] success.
[Info] begin copy file[/Users/morelearn/works/chemi/code/chemi3-app/unpackage/cache/wgt/UNI63AE0B2/.manifest/splash-android-hdpi.9.png] to [/Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm/res/drawable-hdpi/splash.9.png]...
[Info] copy file[/Users/morelearn/works/chemi/code/chemi3-app/unpackage/cache/wgt/UNI63AE0B2/.manifest/splash-android-hdpi.9.png] to [/Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm/res/drawable-hdpi/splash.9.png] success.
[Info] begin copy file[/Users/morelearn/works/chemi/code/chemi3-app/unpackage/cache/wgt/UNI63AE0B2/.manifest/splash-android-xhdpi.9.png] to [/Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm/res/drawable-xhdpi/splash.9.png]...
[Info] copy file[/Users/morelearn/works/chemi/code/chemi3-app/unpackage/cache/wgt/UNI63AE0B2/.manifest/splash-android-xhdpi.9.png] to [/Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm/res/drawable-xhdpi/splash.9.png] success.
[Info] begin copy file[/Users/morelearn/works/chemi/code/chemi3-app/unpackage/cache/wgt/UNI63AE0B2/.manifest/splash-android-xxhdpi.9.png] to [/Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm/res/drawable-xxhdpi/splash.9.png]...
[Info] copy file[/Users/morelearn/works/chemi/code/chemi3-app/unpackage/cache/wgt/UNI63AE0B2/.manifest/splash-android-xxhdpi.9.png] to [/Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm/res/drawable-xxhdpi/splash.9.png] success.
[Info] begin update files to apk...
[Info] I: Using Apktool 2.4.1
[Info] I: Copying /Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm classes.dex file...
[Info] I: Copying /Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm classes3.dex file...
[Info] I: Copying /Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm classes2.dex file...
[Info] I: Checking whether resources has changed...
[Info] I: Building resources...
[Error] W: /Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm/AndroidManifest.xml:67: Tag <uses-permission> attribute name has invalid character ' '.
[Error] brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/5t/f8z12pg54tl6y30gtkmtkd540000gn/T/brut_util_Jar_854542471875563804.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 26, --version-code, 61, --version-name, 3.15.1, --no-version-vectors, -F, /var/folders/5t/f8z12pg54tl6y30gtkmtkd540000gn/T/APKTOOL1379469426364995392.tmp, -e, /var/folders/5t/f8z12pg54tl6y30gtkmtkd540000gn/T/APKTOOL5370912986095612146.tmp, -0, arsc, -I, /Users/morelearn/Library/apktool/framework/1.apk, -S, /Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm/res, -M, /Users/morelearn/Library/Application Support/HBuilder X/UNI63AE0B2/packge_cache/NONE/UNI63AE0B2_cm/AndroidManifest.xml]
[Error] Apk tool compile package to apk failed
[Error] 制作结果:Failed. Reason:

该问题目前已经被锁定, 无法添加新回复