报错如下:
> hvigor ERROR: Failed :entry:default@SignHap...
> hvigor ERROR: Tools execution failed.
01-13 16:35:55 ERROR - hap-sign-tool: error: Init keystore failed: keystore password was incorrect
* Try the following:
> The key store file does not exist, please check the key store file path.
> Incorrect keystore password, please input the correct plaintext password.
> The keystore was created by a newer JDK version, please use the same JDK version
Detail: Please check the message from tools.
> More info: https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/ide-hvigor-faqs-0000001233028585-V5#section165158289282
> hvigor ERROR: BUILD FAILED in 9 s 648 ms
解决:密码错误,签名信息输入正确密码,本次输入正确密码解决。报错是因为密码多输入一个+,+号是禁止作为密码的字符。
如果密码正确,可以试试移除电脑系统变量中本地jdk路径,让deveco studio调用内置jdk。使用DevEco Studio生产密钥对时,DevEco Studio默认会调用软件内预置的JDK17,而用户使用本地的低版本JDK进行签名时则会报错。