o***@163.com
o***@163.com
  • 发布:2022-08-18 10:26
  • 更新:2022-08-24 14:56
  • 阅读:913

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

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: macOS Menterey 12.1

HBuilderX类型: 正式

HBuilderX版本号: 3.3.12

手机系统: Android

手机系统版本号: Android 12

手机厂商: 华为

手机机型: dd

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

云打包

预期结果:

打包成功输出apk

实际结果:

本地构建apk错误

bug描述:

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

[Info] I: Using Apktool 2.4.1 on UNI00E6F71_cm.apk
[Info] I: Loading resource table...
[Info] I: Decoding AndroidManifest.xml with resources...
[Info] I: Loading resource table from file: /Users/wangxian/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 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[/Users/wangxian/Desktop/20220817/hkccpages/unpackage/cache/wgt/UNI00E6F71/.manifest/icon-android-hdpi.png] to [/Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/res/drawable-hdpi/icon.png]...
[Info] copy file[/Users/wangxian/Desktop/20220817/hkccpages/unpackage/cache/wgt/UNI00E6F71/.manifest/icon-android-hdpi.png] to [/Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/res/drawable-hdpi/icon.png] success.
[Info] begin copy file[/Users/wangxian/Desktop/20220817/hkccpages/unpackage/cache/wgt/UNI00E6F71/.manifest/icon-android-xhdpi.png] to [/Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/res/drawable-xhdpi/icon.png]...
[Info] copy file[/Users/wangxian/Desktop/20220817/hkccpages/unpackage/cache/wgt/UNI00E6F71/.manifest/icon-android-xhdpi.png] to [/Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/res/drawable-xhdpi/icon.png] success.
[Info] begin copy file[/Users/wangxian/Desktop/20220817/hkccpages/unpackage/cache/wgt/UNI00E6F71/.manifest/icon-android-xxhdpi.png] to [/Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/res/drawable-xxhdpi/icon.png]...
[Info] copy file[/Users/wangxian/Desktop/20220817/hkccpages/unpackage/cache/wgt/UNI00E6F71/.manifest/icon-android-xxhdpi.png] to [/Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/res/drawable-xxhdpi/icon.png] success.
[Info] begin copy file[/Users/wangxian/Desktop/20220817/hkccpages/unpackage/cache/wgt/UNI00E6F71/.manifest/icon-android-xxxhdpi.png] to [/Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/res/drawable-xxxhdpi/icon.png]...
[Info] copy file[/Users/wangxian/Desktop/20220817/hkccpages/unpackage/cache/wgt/UNI00E6F71/.manifest/icon-android-xxxhdpi.png] to [/Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/res/drawable-xxxhdpi/icon.png] success.
[Info] begin update files to apk...
[Info] I: Using Apktool 2.4.1
[Info] I: Copying /Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm classes.dex file...
[Info] I: Copying /Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm classes3.dex file...
[Info] I: Copying /Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm classes2.dex file...
[Info] I: Checking whether resources has changed...
[Info] I: Building resources...
[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 failed
[Error] 制作结果:Failed. Reason:

2022-08-18 10:26 负责人:无 分享
已邀请:
DCloud_HB_WDL

DCloud_HB_WDL

云端打包能成功吗?

  • o***@163.com (作者)

    报错:

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


    [Info] I: Using Apktool 2.4.1 on UNI00E6F71_cm.apk

    [Info] I: Loading resource table...

    [Info] I: Decoding AndroidManifest.xml with resources...

    [Info] I: Loading resource table from file: /Users/wangxian/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 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/wangxian/Documents/HBuilderProjects/laikepages_dz20220531_xgcc/unpackage/cache/wgt/UNI00E6F71/.manifest/icon-android-hdpi.png] to [/Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/res/drawable-hdpi/icon.png]...

    [Info] copy file[/Users/wangxian/Documents/HBuilderProjects/laikepages_dz20220531_xgcc/unpackage/cache/wgt/UNI00E6F71/.manifest/icon-android-hdpi.png] to [/Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/res/drawable-hdpi/icon.png] success.

    [Info] begin copy file[/Users/wangxian/Documents/HBuilderProjects/laikepages_dz20220531_xgcc/unpackage/cache/wgt/UNI00E6F71/.manifest/icon-android-xhdpi.png] to [/Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/res/drawable-xhdpi/icon.png]...

    [Info] copy file[/Users/wangxian/Documents/HBuilderProjects/laikepages_dz20220531_xgcc/unpackage/cache/wgt/UNI00E6F71/.manifest/icon-android-xhdpi.png] to [/Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/res/drawable-xhdpi/icon.png] success.

    [Info] begin copy file[/Users/wangxian/Documents/HBuilderProjects/laikepages_dz20220531_xgcc/unpackage/cache/wgt/UNI00E6F71/.manifest/icon-android-xxhdpi.png] to [/Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/res/drawable-xxhdpi/icon.png]...

    [Info] copy file[/Users/wangxian/Documents/HBuilderProjects/laikepages_dz20220531_xgcc/unpackage/cache/wgt/UNI00E6F71/.manifest/icon-android-xxhdpi.png] to [/Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/res/drawable-xxhdpi/icon.png] success.

    [Info] begin copy file[/Users/wangxian/Documents/HBuilderProjects/laikepages_dz20220531_xgcc/unpackage/cache/wgt/UNI00E6F71/.manifest/icon-android-xxxhdpi.png] to [/Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/res/drawable-xxxhdpi/icon.png]...

    [Info] copy file[/Users/wangxian/Documents/HBuilderProjects/laikepages_dz20220531_xgcc/unpackage/cache/wgt/UNI00E6F71/.manifest/icon-android-xxxhdpi.png] to [/Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/res/drawable-xxxhdpi/icon.png] success.

    [Info] begin update files to apk...

    [Info] I: Using Apktool 2.4.1

    [Info] I: Copying /Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm classes.dex file...

    [Info] I: Copying /Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm classes2.dex file...

    [Info] I: Checking whether resources has changed...

    [Info] I: Building resources...

    [Error] W: /Users/wangxian/Library/Application Support/HBuilder X/UNI00E6F71/packge_cache/NONE/UNI00E6F71_cm/AndroidManifest.xml:41: 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_6966560450095011369.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 28, --version-code, 100, --version-name, 1.0.3, --no-version-vectors, -F, /var/folders/j6/44x7whxs19bf8m4hcrr6hvf40000gn/T/APKTOOL2210786630934809929.tmp, -e, /var/folders/j6/44x7whxs19bf8m4hcrr6hvf40000gn/T/APKTOOL6972044913185811049.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 failed

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

    2022-08-18 15:22

  • o***@163.com (作者)

    云打包失败

    2022-08-18 15:57

o***@163.com

o***@163.com (作者) - 世间无对错

就是用的云打包模式

o***@163.com

o***@163.com (作者) - 世间无对错

错误在本地打包出问题了

o***@163.com

o***@163.com (作者) - 世间无对错

用传统打包就没问题了。。有点--啊。。这,,

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