Generating an apk from Ionic 2 application


#1

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 ?


#2

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


#3

thanks Sujan ,

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


#4

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


#5

you can minify you code to save more size