Why increase apk size in different versions of Android

I am building a simple app and the .apk size generated by android studio is 1 MB and then I set android 2.3

the version size to 3.48 MB and then I set android 5.0

the version size to 5.48 MB.

My question is only why the apk size increases in different version.

+3


source to share


1 answer


When installing APK on Android system, the installed DEX. Which contains your code, resources, etc., compiled as binaries. Your dex is usually the same size as your apk, unless you have any resources not compiled into assets.

Well, we all know that. What is not distributed globally is that android keeps its original apk as well. Perhaps for reinstallation in case of errors or other reasons.



This is why the memory capacity of our applications is doubled on the system. This is the sum of the original apk size and dex installed.

+6


source







All Articles