As the name says, Android Studio cannot restore the key from Keystore to create a signed APK release. I had two teammates with the same credentials that I use, and both of them could generate a signed APK without any problems.
I checked most of the links here in SO and none of them solved my problem. Most of all, I paid attention to the following as the best suspect in the problem: Android Studio: it is impossible to restore the key
My current setup is a Windows 10 laptop, so I thought it might be a Windows thing (my teammates have a Mac and a Ubuntu laptop). The next thing I did was create a Linux Mint virtual machine and test the project and build, but I have the same error.
Screenshots:
Use the wrong password for purposes
Using the correct password
source share