How to build and sign game for Android on Mac

Monkey Targets Forums/Android/How to build and sign game for Android on Mac

Tri|Ga|De(Posted 2012) [#1]
I tried to search the forum to find a guide on how to build and sign an Android game on my Mac.

Can anyone tell my how to do it?


Tri|Ga|De(Posted 2012) [#2]
Really nobody knows??


Volker(Posted 2012) [#3]
Try this:
http://www.monkeycoder.co.nz/Community/posts.php?topic=1014


Tri|Ga|De(Posted 2012) [#4]
@Volker

I guess thats for Windows. I need it for Mac.


therevills(Posted 2012) [#5]
The process will be very similar for Mac. The tools are from the Android SDK, just use Terminal instead of Cmd.


Tri|Ga|De(Posted 2012) [#6]
Okay I tried to follow your guide and ended up with a file called planet defender-signed-zipped.apk

First I copied my icons files and edited config.txt. Then I compiled again.
I then renamed my APK file to ZIP and removed the META-INF folder.
I then renamed the file to APK again (In terminal)

I ran the jar signer tool without error.
I ran the zipalign tool without error

I renamed the planetdefender-signed-zipped.apk to planetdefender.apk and tried to upload it to Google Play.

But i get this error:
"The server could not process your apk. Try again."
Sometimes it even uploads some of the file and then stop with the same error.

Any idea where I might have done something wrong?


MikeHart(Posted 2012) [#7]
That sounds like a connection problem between you and google than a problem during the apk creation.


Tri|Ga|De(Posted 2012) [#8]
So you suggest that I keep trying to upload it?


therevills(Posted 2012) [#9]
Which browser are you using? Sometimes I found using a different browser on google site helps with uploading them.


Tri|Ga|De(Posted 2012) [#10]
I'm using Safari, but I tried FireFox and Chrome with the same result.

[edit
I just tried on a Windows PC with the same result!
/edit]


Volker(Posted 2012) [#11]
Is the package name set correctly?
Something like this:
ANDROID_APP_PACKAGE=com.yourcompany.pdefender


Tri|Ga|De(Posted 2012) [#12]
Yes that should be okay.

The APK file does not get uploaded to the Google Play site.

Ones it did download all 5 MB but nothing more happened.
So it looks like there is something wrong with the upload procedure.
Or maybe Google check for something before upload, I don't know!


Tri|Ga|De(Posted 2012) [#13]
Is there any way to check it the key I made is valid?


Tri|Ga|De(Posted 2012) [#14]
I finally nailed it!

This time I used muCommander to open the APK file and delete the META-INF folder.

It should hopefully be available in the Google Play store shortly.