避风港湾
避风港湾
  • 发布:2022-05-20 08:35
  • 更新:2022-08-18 10:21
  • 阅读:1248

安心打包失败 提示Tag <provider> missing required attribute name.

分类:HBuilderX
  • 安心打包失败
    提示:本地安装包生成失败,请重试或者切换到非安心打包模式进行打包

  • 报错日志
    [Info] I: Checking whether resources has changed...
    [Info] I: Building resources...
    [Error] W: /Users/shaoyingnan/Library/Application Support/HBuilder X/UNI8DF0062/packge_cache/NONE/UNI8DF0062_cm/AndroidManifest.xml:40: Tag <provider> missing required attribute name.
    [Error] brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/99/2xwf49156zjgwb4l34jn98pc0000gn/T/brut_util_Jar_107063636146168804.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 30, --version-code, 103, --version-name, 1.0.3, --no-version-vectors, -F, /var/folders/99/2xwf49156zjgwb4l34jn98pc0000gn/T/APKTOOL8325642589575816077.tmp, -e, /var/folders/99/2xwf49156zjgwb4l34jn98pc0000gn/T/APKTOOL7145654835020690127.tmp, -0, arsc, -I, /Users/shaoyingnan/Library/apktool/framework/1.apk, -S, /Users/shaoyingnan/Library/Application Support/HBuilder X/UNI8DF0062/packge_cache/NONE/UNI8DF0062_cm/res, -M, /Users/shaoyingnan/Library/Application Support/HBuilder X/UNI8DF0062/packge_cache/NONE/UNI8DF0062_cm/AndroidManifest.xml]
    [Error] Apk tool compile package to apk failed
    [Error] 制作结果:Failed. Reason:

  • 说明
    之前的安心打包功能正常,后来同样的项目打包不了了,升级最新版本HBuilderX(3.4.7.20220422)也不行
    看Error是提示Tag <provider> missing required attribute name.
    和后面的[Error] brut.androlib.AndrolibException: brut.common.BrutException: could not exec
    项目里在manifest.json没找到哪里配置这个

2022-05-20 08:35 负责人:无 分享
已邀请:
DCloud_HB_HXY

DCloud_HB_HXY

QQ发一下,加你排查下问题

  • 避风港湾 (作者)

    QQ:961428008

    2022-05-20 14:25

  • o***@163.com

    [Error] W: /Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/AndroidManifest.xml:43: Tag missing required attribute name.

    [Error] brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/j6/44x7whxs19bf8m4hcrr6hvf40000gn/T/brut_util_Jar_4774403497281716611.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 28, --version-code, 100, --version-name, 1.0.3, --no-version-vectors, -F, /var/folders/j6/44x7whxs19bf8m4hcrr6hvf40000gn/T/APKTOOL6452074632649917340.tmp, -e, /var/folders/j6/44x7whxs19bf8m4hcrr6hvf40000gn/T/APKTOOL7824349022594430791.tmp, -0, arsc, -I, /Users/wangxian/Library/apktool/framework/1.apk, -S, /Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/res, -M, /Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/AndroidManifest.xml]

    [Error] Apk tool compile package to apk failedjavascript:;

    [Error] 制作结果:Failed. Reason:

    2022-08-18 10:21

o***@163.com

o***@163.com - 世间无对错

同样的问题

o***@163.com

o***@163.com - 世间无对错

[Error] W: /Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/AndroidManifest.xml:43: Tag <provider> missing required attribute name.
[Error] brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/j6/44x7whxs19bf8m4hcrr6hvf40000gn/T/brut_util_Jar_4774403497281716611.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 28, --version-code, 100, --version-name, 1.0.3, --no-version-vectors, -F, /var/folders/j6/44x7whxs19bf8m4hcrr6hvf40000gn/T/APKTOOL6452074632649917340.tmp, -e, /var/folders/j6/44x7whxs19bf8m4hcrr6hvf40000gn/T/APKTOOL7824349022594430791.tmp, -0, arsc, -I, /Users/wangxian/Library/apktool/framework/1.apk, -S, /Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/res, -M, /Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/AndroidManifest.xml]
[Error] Apk tool compile package to apk failedjavascript:;
[Error] 制作结果:Failed. Reason:

o***@163.com

o***@163.com - 世间无对错

请问是怎么解决的

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