Android: Keystore file and alias inside it should have the same passwords

Description
Android Bundle goes on endlessly without errors and without creating an apk file. Just “bundling…” message forever.

How to reproduce
Create keystore file and alias inside it with different passwords.

Defold version
I work in 1.2.179. But I think the problem have been existing since the version with keystore implementation was released.

Platform
Android

Workaround
Here you can find this text:

You can create a keystore using Android Studio or from a terminal/command prompt

Let’s go to Android Studio website and read this text about password for alias:

This should be different from the password you chose for your keystore

If you do this, android apk-file will not be able to be built in Defold.
Also, you can’t create keystore file by Android Studio without alias-password. You have to type something.
Separate passwords in defold-password-txt file don’t work.

Solution
Use identical passwords for keystore file and alias inside it.

Suggestions
Please, put this information to this page. This will save a lot of time for developers.

My story in images:
Defold manual:


Android studio:

Me:

Defold is trying to build an apk-file for empty-project forever:
17


Me created alias with the same password as for keystore by accident:

5 Likes

I’m sorry to have wasted a lot of time. I’ll look into this, and definitely update the docs but probably also add yet another argument to bob and the editor.

4 Likes

No problem! That’s completely ok.
Hope this topic (and your solution) will save some time for other.

2 Likes