Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

71mb added to app size for crosswalk

I really hope I'm doing something wrong. I've added crosswalk to a project and have had some serious app size increase. To test I've done the following.

  1. created a new ionic project
  2. added my app code to /www/
  3. added ngcordova and various plugins
  4. Ran ionic build and drop the apk onto a Genymotion emulator. The app was very slow but had a app size of 8.01mb (once installed - checked with app manager).
  5. Then I deleted the app from the emulator
  6. Ran ionic browser add crosswalk
  7. Ran ionic run android which installed the correct .apk on the emulator. On checking in manage apps the app size is now 79.36mb!!! Thats a 71mb increase! Most places say 20mb at most but 71mb!!!

Can someone tell me what I've done wrong?

When I added the Android SDK I did add all the tools ad platforms availabe in the SDK manager, did that have some effect?

If this isn's fixable it's a show stopper for me, which is a shame after spending weeks developing an app...

Please help!

like image 416
James J Avatar asked Mar 15 '23 23:03

James J


2 Answers

I'm also running into that issue. Unfortunately using crosswalk will definitely increase your apk size. However, I found some way to at least reduce the apk size. For instance you could make use of the crosswalk lite. It may reduce your apk size for about 15 MB (see crosswalk lite). You can also specify that you don't want to build the projects for two architectures (explained here).

like image 119
andreaspfr Avatar answered Mar 23 '23 04:03

andreaspfr


Same problem here. I think promissed size of 20Mb is for the apk file which is compressed, you are looking at installed size on device.

You can check generated APK size on platforms/android/build/outputs/apk/ or platforms/android/ant-build/

like image 33
Fernando Fabreti Avatar answered Mar 23 '23 03:03

Fernando Fabreti