Skip to main content
Known Participant
April 8, 2013
Answered

You uploaded an APK that is not zip aligned.

  • April 8, 2013
  • 13 replies
  • 7888 views

Already uploaded an app to Google play created in Flash CS6 with no errors. Now I get this and the only solutions I have found are for using Eclipse.

What do I do to resolve this?

I'm on a mac.

This topic has been closed for replies.
Correct answer Colin Holgate

You can get the command to work by dragging the zipalign file into the terminal window. That gives the full path to the command. Then type in the parameters, followed by the path to the api file.

One thing that had me confused was the , but what it wants is 4.

So, for my case, of verifying an apk called 'an.apk', that was in the current folder, the verify line looked like this:

/Users/colin/Documents/android-sdk-macosx/tools/zipalign -c -v 4 an.apk

13 replies

Colin Holgate
Inspiring
April 8, 2013

I had never heard of zipalign, and I've submitted quite a few APKs from Flash Pro.

Here's the article on it:

http://developer.android.com/tools/help/zipalign.html

Looks like it might be worth using in general.

soremiteAuthor
Known Participant
April 8, 2013

I saw that link and found zipalign in the Android folder on my machine, but when I do exactly what the directions say Terminal Pro says "zipalign is not a command".

soremiteAuthor
Known Participant
April 8, 2013

I think this wonderful error when trying to upload it (a simple gallery) to the iOS store:

Application failed codesign verification.  The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate.

No idea what to do about that. I have recreated all the proper certificates 3 times.