0

I am trying to generate signed apk with an exiting keystore but i have following problem

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

il_raffa
  • 5,090
  • 129
  • 31
  • 36
Enaam Riyadh
  • 131
  • 3
  • 15

2 Answers2

2

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/

Note: keytool.exe exists in jdk/bin folder or jre/bin folder.

navylover
  • 12,383
  • 5
  • 28
  • 41
0

if you have special characters in your passwords use this tool to change it:

http://keystore-explorer.org/

special characters like Ç

enter image description here

Momen Zaqout
  • 1,508
  • 1
  • 16
  • 17