zipalign: command not found - Ubuntu
- Open terminal (CTRL + t)
- cd YOUR_PATH/android-sdk-linux/build-tools/XX.X.X
- sudo cp zipalign /usr/bin/
- Open the folder where is located your apk in the terminal.
- Execute zipalign -v 4 YOUR_APK.apk YOUR_APK.apk
When a usage message contains an argument in brackets, the brackets mean that that argument is optional and can be left out of the final command; the brackets are not themselves part of the command syntax.
In your case, correct usage might look like:
./zipalign -v 4 intput.apk output.apk
In terminal,
cd /opt/android-sdk/build-tools/21.1.2
sudo ln -sf zipalign /usr/bin/
zipalign -v 4 platforms/android/ant-build/MainActivity-release-unsigned.apk platforms/android/ant-build/YOUR_APP.apk