intel XDK (.apk) 的输出太大了!(安卓) [英] The output of intel XDK (.apk) is too large ! (android)

查看:30
本文介绍了intel XDK (.apk) 的输出太大了!(安卓)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用 intel XDK 构建一个基于 web 的 android 应用程序!我试过了,但是输出的 apk 文件太大了,我的文件总共有 2.4MB,但输出是 15.6Mb!我该怎么办?

i wanna build a web base android application with intel XDK! i tried but the output apk file is too large, My files are totaly 2.4MB but the output is 15.6Mb ! What should I do ?

推荐答案

正如@HoseinBL 所指出的,15.6MB 对于典型的 APK 来说并不是那么大.

As @HoseinBL indicates, 15.6MB is not that large for a typical APK.

您使用的是哪个 Android 版本?当前的 XDK 构建系统中实际上有三个可用.如果您使用的是仅标记为Android"的产品,则上面来自 @Brad Hill 和 @Tangocoder 的评论适用.如果您需要使用 Canvas API(又名 AGI)或 Cordova API,您需要使用Gold"选项进行构建.如果您只使用英特尔 XDK API(intel.xdk 和 appmobi 命名空间),您可以使用精益"选项来获得稍小的 APK.

Which Android build are you using? There are actually three available in the current XDK build system. If you're using the one labeled just "Android" the comments above from @Brad Hill and @Tangocoder apply. If you need to use the Canvas API (aka AGI) or the Cordova API you need to build using the "Gold" option. If you only use the Intel XDK API (intel.xdk and appmobi namespaces) you can use the "Lean" option for a slightly smaller APK.

Crosswalk for Android 版本将创建至少 15MB 的包,因为此选项包括需要大量空间的替代 webview.

The Crosswalk for Android build will create at minimum a 15MB package, since this option includes a replacement webview that requires a lot of space.

我们正在最终确定一个 100% 兼容 Cordova 的版本(当前称为Android 版 Cordova"),该版本将生成更小的 APK,但它还没有为黄金时段做好准备(因此"Beta"标签).

We are in the process of finalizing a 100% Cordova-compatible build (current called "Cordova for Android") that will generate smaller APKs, but it isn't quite ready for prime-time (thus the reason for the "Beta" tag).

这篇关于intel XDK (.apk) 的输出太大了!(安卓)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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