zipalign: command not found - Ubuntu

  1. Open terminal (CTRL + t)
  2. cd YOUR_PATH/android-sdk-linux/build-tools/XX.X.X
  3. sudo cp zipalign /usr/bin/
  4. Open the folder where is located your apk in the terminal.
  5. 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

Tags:

Ubuntu

Android