简体   繁体   English

安装的Android应用是APK大小的两倍

[英]Android app installed is double the size of the apk

I upgraded my Eclipse ADT tools to r20 (from r17 or so) and now the applications installed on the devices use twice the size of the apk. 我将Eclipse ADT工具升级到了r20(从r17左右),现在设备上安装的应用程序使用的APK大小是apk的两倍。 The app itself is running fine. 该应用程序本身运行良好。

This happens for both the release and the debug versions, and whether I generate the apk with ant (and install thru usb) or launch the app from eclipse. 对于发行版和调试版,以及我是否使用ant生成apk(并通过usb安装)还是从eclipse启动应用程序,都会发生这种情况。

I tried with various target versions but it's always the same thing. 我尝试了各种目标版本,但总是一样。

For info - I do not use "copy protection" nor licensing, this is direct install, not thru the play store. 有关信息-我既不使用“版权保护”也不使用许可,这是直接安装,而不是通过Play商店进行。 - I use proguard to optimize/obfuscate my code. -我使用proguard来优化/混淆我的代码。 I uncompresed/analyzed my apk and everything seems normal (compared to previous apk that do not exhibit this issue). 我未压缩/分析我的apk,并且一切似乎都正常(与之前未出现此问题的apk相比)。

Thanks in advance for any info on that. 在此先感谢您提供任何信息。

Installed app's size is always larger than apk. 已安装应用的大小始终大于apk。 becoz apk is just a zipped file(copressed file) and installed app is unzipped(uncompressed). becoz apk仅仅是一个压缩文件(压缩文件),而已安装的应用程序是未压缩(未压缩)的。

Found out the issue. 找出问题所在。

At the same time as the sdk update, the manifest had been updated, and the preferred storage option (external) had been deleted, So it was installed entirely on the phone memory. 在sdk更新的同时,清单已更新,并且首选的存储选项(外部)已删除,因此它已完全安装在手机内存中。 and the memory reported in the app manager was double the apk size. 并且在应用程序管理器中报告的内存是apk大小的两倍。

Now it is installed on the SD card, and it uses almost the apk size in system memory as before. 现在,它已安装在SD卡上,并且像以前一样几乎在系统内存中使用apk大小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM