生成签名的apk安卓工作室 - 密钥错误

问题描述 投票:0回答:2

我正在尝试使用现有的密钥库生成签名的apk但我有以下问题

Error:org.gradle.tooling.BuildException: Failed to read key MedicalAssistanceKey from store "D:\MedicalAsError:com.android.ide.common.signing.KeytoolException: Failed to read key MedicalAssistanceKey from store

 "D:\MedicalAss_download\MyKey.jks": Cannot recover keys_download\MyKey.jks": Cannot recover key

Error:java.security.UnrecoverableKeyException: Cannot recover key

我确定密码和密钥是正确的

android apk signed-apk
2个回答
0
投票

密钥库和密钥密码必须相同。您可以使用命令修改passwork,如下所示:

keytool -storepasswd -new [insert new keystore password] -keystore [insert keystore file name]

keytool -keypasswd -alias [insert alias] -new [insert new key password] -keystore [insert keystore file name]

或者,如果您喜欢GUI,请从http://keystore-explorer.org/下载

注意:keytool.exe存在于jdk / bin文件夹或jre / bin文件夹中。


0
投票

如果您的密码中有特殊字符,请使用此工具进行更改:

http://keystore-explorer.org/

Ç这样的特殊人物

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.