Android Studio: cannot recover key

后端 未结 14 1347
闹比i
闹比i 2020-11-28 22:52

I have searched StackOverflow for a while, but I just wanted to make sure...

I wiped my laptop a while ago, and backed up all my files. I have my android.jks file ba

相关标签:
14条回答
  • 2020-11-28 23:25

    [Android Studio 3.3] I got the 'cannot recover key' error on generating a signed APK. I was able to check in an older idea.log for the correctness of my password: Key Store and Key passwords were identical and correct.

    Updating the key password in the terminal:

    keytool -keypasswd -alias MYKEY -keystore KEYSTORE
    

    It seems to be no longer possible to have identical passwords for keystore and key. The keytool gave me an error, when I tried. After setting a different password for the key, Android Studio generated a signed APK.

    Maybe, in previous Android Studio versions passwords had to be identical - now it may be the opposite.

    0 讨论(0)
  • 2020-11-28 23:28

    If you have eclipse running, try to shut it down and generate a signed apk again.

    In my case, I checked that all the passwords are correct and even generated a new key store from Android studio. It still did not work, but after I shut down eclipse that is running, everything just worked, with the old key store I used or with a newly generated one.

    0 讨论(0)
提交回复
热议问题