简体   繁体   English

生成签名的APK Android Studio-密钥错误

[英]Generate signed apk android studio - Error with key

I am trying to generate signed apk with an exiting keystore but i have following problem 我正在尝试使用退出的密钥库生成签名的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

I am sure the password and key are correct 我确定密码和密钥正确

The keystore and key passwords have to be the same. 密钥库和密钥密码必须相同。 You could use commands to modify passwork as below: 您可以使用以下命令来修改密码:

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]

Or if you like GUI, download from http://keystore-explorer.org/ 或者,如果您喜欢GUI,请从http://keystore-explorer.org/下载

Note: keytool.exe exists in jdk/bin folder or jre/bin folder. 注意:keytool.exe存在于jdk / bin文件夹或jre / bin文件夹中。

if you have special characters in your passwords use this tool to change it: 如果密码中包含特殊字符,请使用此工具进行更改:

http://keystore-explorer.org/ http://keystore-explorer.org/

special characters like Ç 特殊字符Ç

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM