Uploading apk to google play get an error:

"You uploaded an APK for that is not zip aligned. You need to run it again.".

I read that for this you need to type in the command line:

zipalign -v 4 your_project_name-unaligned.apk your_project_name.apk 

I get an error on the command line:

zipalign: command not found

What am I doing wrong? And how to do it right?

    1 answer 1

    I figured out the problem, firstly I was not in the correct directory, I was in the apk file directory, but I had to be in the directory: ~/Library/Android/sdk/build-tools/xxxx/zipalign , where xxxx is the version in -second, before the team put "./" , namely ./zipalign -v 4 your_project_name-unaligned.apk your_project_name.apk and it all worked.