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

查看:27
本文介绍了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. 添加了 ngcordova 和各种插件
  4. 运行 ionic build 并将 apk 放到 Genymotion 模拟器上.该应用运行速度非常慢,但应用大小为 8.01mb(安装后 - 与应用管理器核对).
  5. 然后我从模拟器中删除了该应用
  6. ionic 浏览器添加人行横道
  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 大小的方法.例如,您可以使用人行横道精简版.它可能会将您的 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天全站免登陆