After making target targetSdkVersion and compileSdkVersion to 26, my android apk size increased by 500kb.
Android apk size with(targetSdkVersion and compileSdkVersion as 25)=5.6mb
Android apk size with(targetSdkVersion and compileSdkVersion as 26)=6.2mb
After analyzing the apk I got to know that libs folder having ".so" only have increased size.
Can anyone suggest something what really happened and how to minimize this size change??
One of the simple ways to make your APK smaller is to reduce the number and size of the resources it contains. In particular, you can remove resources that your app no longer uses, and you can use scalable Drawable objects in place of image files.
Navigate to “Appearance & Behavior” > “System Settings” > “Android SDK” and now you can see the SDK versions that were installed in the “API Level” and “Name” columns (focus on “API Level”).
Android software package files, otherwise known as APKs, are compressed archives of executable code. The archive contains everything an app does, from its GUI and logic to any images it uses.
Set the android:extractNativeLibs
flag to false in the <application>
element of your app manifest. This will prevent PackageManager
from copying out .so
files from the APK to the filesystem during installation and will have the added benefit of making delta updates of your app smaller.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With