HarmonyOS 鸿蒙Next:Signing failed. Reconfigure the signature or clear the /src/config folder and perform signing again.

HarmonyOS 鸿蒙Next:Signing failed. Reconfigure the signature or clear the /src/config folder and perform signing again. 我将.cer .p7b .p12文件放在项目的 ./signFile 文件夹下

"material": {
    "profile": "./config/xxx=.p7b",
    "storeFile": "./config/xxx=.p12",
    "certpath": "./config/xxx=.cer",
    ....
}

DevEco编译成功

在Linux下用 command-line-tools hvigorw assembleApp 编译 提示错误

hvigor ERROR: Failed :entry:default@SignHap...
hvigor ERROR: Signing material is illegal!
Detail: Signing failed. Reconfigure the signature or clear the /jenkins/jobs/workspace/src/config folder and perform signing again.
at /jenkins/jobs/workspace/src/build-profile.json5

更多关于HarmonyOS 鸿蒙Next:Signing failed. Reconfigure the signature or clear the /src/config folder and perform signing again.的实战教程也可以访问 https://www.itying.com/category-93-b0.html

4 回复

原因找到了,代码使用svn管理,在linux上material目录多了.svn文件,删除后就成功了

更多关于HarmonyOS 鸿蒙Next:Signing failed. Reconfigure the signature or clear the /src/config folder and perform signing again.的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


手动配置签名信息可以参考一下这个文档,检查一下是哪里出现了问题:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V2/signing-0000001587684945-V2#section112371245115818

.cer .p7b .p12文件放在项目的 ./config文件夹下

针对帖子标题“HarmonyOS 鸿蒙Next:Signing failed. Reconfigure the signature or clear the /src/config folder and perform signing again.”的问题,以下是专业回答:

在HarmonyOS鸿蒙Next开发过程中遇到签名失败的问题,通常是由于签名配置不正确或签名文件损坏导致。根据错误信息提示,可以采取以下步骤解决:

  1. 重新配置签名:检查并确认签名证书(如.p12或.keystore文件)的路径、密码以及别名等信息是否正确配置在项目的签名配置文件中。确保所有信息无误后,保存配置并重新尝试签名。

  2. 清除/src/config文件夹:有时配置文件夹中的旧数据可能导致签名失败。可以尝试删除/src/config文件夹下的所有内容,然后重新生成配置文件,并再次进行签名操作。

  3. 重新生成签名文件:如果签名文件损坏,可能需要重新生成一个新的签名文件,并确保其配置正确。

按照上述步骤操作后,一般可以解决签名失败的问题。如果问题依旧没法解决,请联系官网客服,官网地址是:https://www.itying.com/category-93-b0.html

回到顶部