71mb添加到了应用程序大小的人行横道 [英] 71mb added to app size for crosswalk

查看:215
本文介绍了71mb添加到了应用程序大小的人行横道的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的希望我做错了什么。我已经在项目中添加了人行横道,并且已经有了一些严重的应用程序大小增加。为了测试我已经完成了以下操作。

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. 创建了一个新的离子项目

  2. 添加了我的应用程序代码到/ www /

  3. 添加了ngco​​rdova和各种插件

  4. Ran ion build并将apk放到Genymotion模拟器上。该应用程序非常慢,但应用程序大小为8.01mb(安装后 - 与应用程序管理器核对)。

  5. 然后我从模拟器中删除了应用程序

  6. Ran 离子浏览器添加人行横道

  7. Ran ionic run android 其中在模拟器上安装了正确的.apk。在检查管理应用程序时,应用程序大小现在为79.36mb!这增加了71mb!大多数地方说最多20mb但是71mb !!!

  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?

当我添加Android SDK时,我确实添加了SDK管理器中可用的所有工具广告平台,这有效吗?

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...

请帮忙!

推荐答案

我也遇到了这个问题。不幸的是,使用crosswalk肯定会增加你的apk大小。但是,我发现了一些方法来至少减少apk大小。例如,你可以使用crosswalk lite。它可能会减少你的apk大小大约15 MB(参见 crosswalk lite ) 。
您还可以指定您不想为两个体系结构构建项目(解释这里)。

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).

这篇关于71mb添加到了应用程序大小的人行横道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆