zipalign: command not found

前端 未结 9 2047
Happy的楠姐
Happy的楠姐 2021-01-31 02:51

I\'m working on Ionic project now whereby I want to zipalign the android-release-unsigned.apk file. I followed this guide by Ionic.

When I run

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-31 03:26

    To avoid specifying or navigating to your sdk/build-tools/* directories each time you intend to build release version, you can simply add the path to your environment variable.

    $ sudo nano ~/.bash_profile

    copy and paste the below:

    export PATH=${PATH}:/Library/Android/sdk/build-tools/21.1.2

    You can then save and exit:

    control + o // to save to file
    control + x // to close the file
    $ source ~/.bash_profile

    You can then run your zipalign command from your project CLI directory.

提交回复
热议问题