I’ve been trying to upload my apk to google play and have been struggling to get the packaging done.
The game packages fine without the “For distribution” box checked.
I have generated the keystore file and it is in my Build\Android folder.
Also I have the distribution signing info correctly placed.
My SDK location are correctly linked. Though I would point that both my engine, project and NVPACK folder are not in the default location but in my own custom location. The NVPACK is fully updated aswell.
I want to package the game with ETC1 but I have been doing it with Android (All) just to see if that was the issue.
My game is already linked with Google play services.
But I’ll still give out the solution to help someone.
Firstly, My keystore file was missing alias name.
So I created a new keystore file from cmd prompt. keytool -genkey -v -keystore my_keystore_filename.keystore -alias my_alias_name -keyalg RSA -keysize 2048 -validity 10000
Secondly, I moved the Keystore file to /Build/Android
Thirdly, As I did not have my alias name in my previous file, I had to make correction in distribution settings in project settings android section.
AND LASTLY Make sure in distribution settings under keystore name you add the “.keystore” extension to your keystore file name.
Well, it kept failing when I set it for distribution for no reason, and then I checked and saw that one does not simply package for distribution without that keystore thing.
Then I read that you need to use that command in cmd but no one mentioned that you actually need to put it in a certain directory nor that you need to put the extension ‘.keystore’
I don’t even know how you found out about this.
Not that I plan to publish anything anytime soon but it’s nice to know that you can at least do it and actually work