我正在尝试使用现有的密钥库生成签名的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
我确定密码和密钥是正确的
密钥库和密钥密码必须相同。您可以使用命令修改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文件夹中。