[Resolved] Unable to list keys in the keystore. Please make sure the location and password of the keystore is correct

This post is to save everyone time dealing with Unity’s sloppy bugs.

If you get the following error:

Unable to list keys in the keystore. Please make sure the location and password of the keystore are correct.

And you are sure that your password and location are correct, then here is your solution:

  1. Go into the Project SettingsPlayerPublishing Settings. There, type in your correct password, which will result in the error above.

  2. Now, open the ProjectSettings folder in the root folder of your project. There, you’ll find a file called ProjectSettings.asset. Open it in a text editor.

  3. Find the line AndroidKeyaliasName: and remove everything after the two dots (:). Then, go back into your publishing settings and open/refresh it until you reach the state where the password of the keystore is in the first password line, and the second line is empty with an empty password field that you can’t type in because Unity decided your password is wrong for no reason.

  4. Now, edit the line AndroidKeyaliasName: and type your app key name after it. So it looks like AndroidKeyaliasName: My App Key Name.

  5. If you are lucky, you can now magically type your password in the second line. If not, rinse and repeat until it works. It took me several attempts doing the same thing before at one point it worked. (Should be less than 50 times, don’t sit there for days)

  6. If both passwords are in the publishing settings, just compile your .aab file and all is good.

This problem is known to Unity for years. Don’t ask why we have to do such absurdly ridiculous workarounds …