How to build and sign game for Android on Mac
Monkey Targets Forums/Android/How to build and sign game for Android on Mac
| ||
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? |
| ||
Really nobody knows?? |
| ||
Try this: http://www.monkeycoder.co.nz/Community/posts.php?topic=1014 |
| ||
@Volker I guess thats for Windows. I need it for Mac. |
| ||
The process will be very similar for Mac. The tools are from the Android SDK, just use Terminal instead of Cmd. |
| ||
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? |
| ||
That sounds like a connection problem between you and google than a problem during the apk creation. |
| ||
So you suggest that I keep trying to upload it? |
| ||
Which browser are you using? Sometimes I found using a different browser on google site helps with uploading them. |
| ||
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] |
| ||
Is the package name set correctly? Something like this: ANDROID_APP_PACKAGE=com.yourcompany.pdefender |
| ||
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! |
| ||
Is there any way to check it the key I made is valid? |
| ||
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. |