APK中的资源没有压缩?
我注意到 resources.arsc 没有压缩在 APK 文件中。这意味着该文件仅存储在存档中,没有压缩。
这是 Android 操作系统的要求,还是构建工具中的某些错误? APK 中的大资源文件在(从市场)下载时会使用更多带宽,并且比压缩时在设备上占用更多空间。
I noticed that resources.arsc is not compressed in APK file. This means this file is just stored in archive with no compression.
Is this requirement of Android OS, or some bug in build tools?
Big resource files in an APK use more bandwidth when downloaded (from Market) and take more space on device than if they were compressed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我无法为您提供官方答案的链接,但我可以提供 此链接。它提供了打包工具“aapt”执行的 .apk 文件压缩的一些详细信息。
似乎只有选定的文件类型才会被压缩,唯一的选择就是关闭压缩!我尝试从命令行中使用“aapt -help”来查看可用的开关,但除了压缩关闭选项之外,我没有看到任何可以打开它的选项。
I can't provide you with a link to an official answer but I can offer this link. It provides some details of compression of .apk files carried out by the packaging tool 'aapt'.
It seems that only selected file types are compressed and the only option is to switch compression off! I tried 'aapt -help' from my command line to see the switches available but apart from the compression off option I saw nothing to switch it on.