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

查看:170
本文介绍了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所指出的,对于典型的APK,15.6MB并不大.

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"选项进行构建.如果仅使用Intel 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的程序包,因为此选项包括需要大量空间的替换Web视图.

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的版本(当前称为"Cordova for Android"),该版本将生成较小的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天全站免登陆