How to create a non-debug keystore file

Godot Version

3.3

Question

Hi everyone,

the docs say:

Exporting for Google Play Store
Uploading an APK to Google’s Play Store requires you to sign using a non-debug keystore file; such file can be generated like this:

keytool -v -genkey -keystore mygame.keystore -alias mygame -keyalg RSA -validity 10000

But how exactly do I generate such file?
(Maybe someone can provide a link to some really exact step-by-step description on how to get a finished app ready for upload onto the play store, please? I can’t find any description on how to create that keystore file…)

Locate the key generator bundled with Android Studio on your system. On Windows it is generally:
C:\Program Files\Android\Android Studio\jbr\bin

Right click and select Run In Terminal. This will open a new window with a command prompt. Now you can enter:

keytool -v -genkey -keystore mygame.keystore -alias mygame -keyalg RSA -validity 10000

Remember to replace mygame and alias to your game title and alias. (All titles must be unique, thus the reason for an alias.) Hit enter and follow the instructions.

The keystore file will be created in this location (which is a pain) so move it to a more accessible place. Remember too to make a note of your password; you can’t get it back!

In Godot Android Export: point it to this file. Note: User is the game name not your name.
Good luck.

1 Like

Hi, if you are not clear using the terminal and the commands, you can do it visually very easily with Android Studio:

Regards!

1 Like

I see, so there are multiple ways of doing it. Android Studio seems easy enough indeed, thank you!

That’s the description I was looking for, thank you so much.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.