Generating an apk from Ionic 2 application


Hi All,

When I run ionic cordova build android , I find that the apk generated is of 14Mb. I have installed ionic-minify and cordova-minify . When I run cordova build -minify, it is unable to find assets as the directory structure of ionic is different from directory structure of codova .

Could you suggest ways to generate an apk of an ionic V2 app which is compressed ?


Use ionic cordova build android --prod to build your app.


thanks Sujan ,

It could only minimise it to 19Mb from 20 Mb .
Is there any other possible way of doing it ?


Rename the .apk to .zip, unzip and look inside - what is using how much space?


you can minify you code to save more size