1***@qq.com
1***@qq.com
  • 发布:2024-11-11 15:32
  • 更新:2024-11-19 17:04
  • 阅读:179

【报Bug】Hbulider X 打包问题

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

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

HBuilderX类型: 正式

HBuilderX版本号: 4.29

手机系统: Android

手机系统版本号: Android 10

手机厂商: 小米

手机机型: redmi k20

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

"android" : {
"minSdkVersion" : 23,
"targetSdkVersion" : 31,
"autoSdkPermissions" : true,
"permissionExternalStorage" : {
"request" : "none",
"prompt" : "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。"
}
}

操作步骤:

HBuilderX 4.29 打自定义基座失败

预期结果:

HBuilderX 4.29 打自定义基座

实际结果:

不能打包

bug描述:

为啥我打自定义基座包设置minSdkVersion=23,targetSdkVersion=28可以正常打包,但是设置为26和30就提示我

Appid: UNIB559E0C
Failed to load signer \"signer #1\"
java.io.IOException: Keystore was tampered with, or password was incorrect
at java.base/sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:795)
at java.base/sun.security.util.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:243)
at java.base/java.security.KeyStore.load(KeyStore.java:1479)
at com.android.apksigner.SignerParams.loadKeyStoreFromFile(SignerParams.java:353)
at com.android.apksigner.SignerParams.loadPrivateKeyAndCertsFromKeyStore(SignerParams.java:239)
at com.android.apksigner.SignerParams.loadPrivateKeyAndCerts(SignerParams.java:181)
at com.android.apksigner.ApkSignerTool.getSignerConfig(ApkSignerTool.java:395)
at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:316)
at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:88)
Caused by: java.security.UnrecoverableKeyException: Password verification failed
at java.base/sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:793)
... 8 more

2024-11-11 15:32 负责人:无 分享
已邀请:

最佳回复

DCloud

DCloud

HBuilderX 4.33.2024111702-alpha 已修复。

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

    好的,谢谢

    2024-11-20 16:47

BoredApe

BoredApe - 有问题就会有答案。

java.security.UnrecoverableKeyException: Password verification failed

请确认证书密码是否正确

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

    我打正式包都没问题,设置"minSdkVersion" : 23,"targetSdkVersion" : 28,打包也没问题,设置minSdkVersion为26,targetSdkVersion为28之后打包就提示这个 java.security.UnrecoverableKeyException: Password verification failed

    2024-11-11 19:31

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

    这应该不是我证书的问题吧,不然怎么打正式包

    2024-11-11 19:32

DCloud_App_Array

DCloud_App_Array

这是因为密码中包含特殊字符导致,暂时可以先修改密码避免使用特殊字符临时避免。
云端打包机后续会更新修复此问题。

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

    好的,谢谢

    2024-11-20 16:47

j***@163.com

j***@163.com

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

[Info] I: Using Apktool 2.6.1 on UNIDF09276_cm.apk
[Info] I: Loading resource table...
[Info] I: Decoding AndroidManifest.xml with resources...
[Info] I: Loading resource table from file: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\apktool\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] I: Copying META-INF/services directory
[Info] begin replace files to apk...
[Info] begin copy file[E:/work/HBuilderX/lilishop/lilishop-uniapp/unpackage/cache/wgt/UNIDF09276/.manifest/icon-android-hdpi.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/AndroidPackWork/cache/UNIDF09276/packge_cache/NONE/UNIDF09276_cm/res/drawable-hdpi/icon.png]...
[Info] copy file[E:/work/HBuilderX/lilishop/lilishop-uniapp/unpackage/cache/wgt/UNIDF09276/.manifest/icon-android-hdpi.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/AndroidPackWork/cache/UNIDF09276/packge_cache/NONE/UNIDF09276_cm/res/drawable-hdpi/icon.png] success.
[Info] begin copy file[E:/work/HBuilderX/lilishop/lilishop-uniapp/unpackage/cache/wgt/UNIDF09276/.manifest/icon-android-xhdpi.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/AndroidPackWork/cache/UNIDF09276/packge_cache/NONE/UNIDF09276_cm/res/drawable-xhdpi/icon.png]...
[Info] copy file[E:/work/HBuilderX/lilishop/lilishop-uniapp/unpackage/cache/wgt/UNIDF09276/.manifest/icon-android-xhdpi.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/AndroidPackWork/cache/UNIDF09276/packge_cache/NONE/UNIDF09276_cm/res/drawable-xhdpi/icon.png] success.
[Info] begin copy file[E:/work/HBuilderX/lilishop/lilishop-uniapp/unpackage/cache/wgt/UNIDF09276/.manifest/icon-android-xxhdpi.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/AndroidPackWork/cache/UNIDF09276/packge_cache/NONE/UNIDF09276_cm/res/drawable-xxhdpi/icon.png]...
[Info] copy file[E:/work/HBuilderX/lilishop/lilishop-uniapp/unpackage/cache/wgt/UNIDF09276/.manifest/icon-android-xxhdpi.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/AndroidPackWork/cache/UNIDF09276/packge_cache/NONE/UNIDF09276_cm/res/drawable-xxhdpi/icon.png] success.
[Info] begin copy file[E:/work/HBuilderX/lilishop/lilishop-uniapp/unpackage/cache/wgt/UNIDF09276/.manifest/icon-android-xxxhdpi.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/AndroidPackWork/cache/UNIDF09276/packge_cache/NONE/UNIDF09276_cm/res/drawable-xxxhdpi/icon.png]...
[Info] copy file[E:/work/HBuilderX/lilishop/lilishop-uniapp/unpackage/cache/wgt/UNIDF09276/.manifest/icon-android-xxxhdpi.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/AndroidPackWork/cache/UNIDF09276/packge_cache/NONE/UNIDF09276_cm/res/drawable-xxxhdpi/icon.png] success.
[Info] begin update files to apk...
[Error] try compile package:0
[Info] I: Using Apktool 2.6.1
[Info] I: Copying C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNIDF09276\packge_cache__NONE__UNIDF09276_cm classes.dex file...
[Info] I: Copying C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache__UNIDF09276\packge_cache__NONE\UNI__DF09276_cm classes2.dex file...
[Info] I: Copying C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__DF09276\packge_cache\
NONE\UNI__DF09276_cm classes3.dex file...
[Info] I: Checking whether resources has changed...
[Info] I: Building resources...
[Error] W: C:\Users\Administrator\AppData\Local\HBuilder X\AndroidPackWork\cache\
UNI__DF09276\packge_cache\
NONE\UNI__DF09276_cm\AndroidManifest.xml:16: Tag <action> attribute name has invalid character '*'.
[Error] W: C:\Users\Admin

要回复问题请先登录注册