Copy link to clipboard
Copied
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.
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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".
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
You can type this in Terminal:
codesign --verify -vvvv MyApp.app
That will give a long report about the code signing. You are looking out for errors, such as it being signed with a developer certificate.
The .app file is what you get if you unzip the IPA file, which you will want to be doing anyway, because what you submit is a zip compressed version of the .app that is in the Payload folder. Don't just submit the IPA, even with a rename.
Copy link to clipboard
Copied
Regarding the codesign part, I renamed it to .zip and then ran codesign on the app, and the response was "satifies it's designated requirement" which implies it's ok, but I still get the error.
Copy link to clipboard
Copied
You would not want to do any rename, other than if you have to in order to extract the .app file.
Here's the sequence:
Publish the IPA.
Use any program to expand that to be a Payload folder.
Go into the Payload folder and select the .app file.
Zip compress that.
Upload the zip file you just made.
Copy link to clipboard
Copied
I was unable to expand it to be a Payloadfolder. I had tried unzipping it, but that only produced another file with a CPGZ extension. Unzipping that produced an IPA with a 2 at the end of the name. I googled how to unzip IPAs and it said rename it, ignore the error, open the payload folder and explore.
Copy link to clipboard
Copied
Got this email today.
Hi,
Thank you for contacting Google Play developer support. Please note that new Developer Console no longer accepts APK files that are not zip aligned. You may use zipalign - an archive alignment tool - to make important optimization to Android application (.apk) files. For additional information on this tool, please visit http://developer.android.com/tools/help/zipalign.html
Regards,
The Google Play Team
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
I didn't get the same error, but now it says unable to open myApk.apk for verification.
Fix one thing another breaks.
Copy link to clipboard
Copied
Finally got it to work. Thanks for your help and patience.
I wasn't giving the full paths to everything. It's been uploaded.
Still having a problem with codesign, but I'll keep working on it or open a separate issue for it.
This is the path I had to use to get it to work. This is a copy-paste with only a few details changed. Quotes were used.
/Users/myname/Documents/zipalign -f -v 4 "/Users/myname/Documents/appName.apk" "/Users/myname/Documents/appName2.apk"
Copy link to clipboard
Copied
Hi,
Could you please let us know the AIRSDK version with which you faced this issue?
Also, what was the output of the zipalign verification command with your apk?
zipalign -c -v 4 sample.apk
Thanks,
Krati
Copy link to clipboard
Copied
I was using AIR 3.4
I don't remember the output now that it worked.