Android Studio: cannot recover key

后端 未结 14 1552
闹比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.

提交回复
热议问题