Generate non-debug apk from ionic

后端 未结 5 1889
悲&欢浪女
悲&欢浪女 2020-12-31 09:36

I am using ionic framework to generate apk for android platform.

After running ionic build android, an android-debug.apk is generated. How can I generat

5条回答
  •  隐瞒了意图╮
    2020-12-31 10:10

    As ionic CLI is based on cordova CLI, you can use, directly:

    ionic build android --release

    Also, if you are worried about optimization, you might find interesting usign zipalign, in order to align data on 4-byte boundaries, thus causing the app to reduce the amount of RAM used. Once you have build the release apk with the previous command, you can run:

    zipalign -v 4 yourReleaseApp.apk zipalignedReleaseApp.apk

提交回复
热议问题