Android keystore stopped working

前端 未结 8 1112
无人共我
无人共我 2020-12-02 17:01

Just recently I have had a problem with a key store. I know there are plenty of questions about this problem already. I have read them all and Googled furiously.

Er

8条回答
  •  臣服心动
    2020-12-02 17:23

    My key alias stoped working sudenly. (Ok, after few updates of Android Studio and Java).

    I tried all solutions from this thread as well as from others. In my case the solution was surprising. I have the keystore with few aliases. None was working except one, which had password the same as keystore. But unfortunately it wasn't the one I needed. This made me thinking with no logic involved. I copied single alias to new keystore with

    keytool -importkeystore -srckeystore old.keystore -destkeystore new.keystore -srcalias importantalias
    

    And then I changed alias password to the same as keystore's password with:

    keytool -keypasswd -keystore new.keystore -alias importantalias
    

    Finally I was able to sign my apk. It looks like silly bug which can waste a day of development.

提交回复
热议问题