RE: How to reduce APK size in Android ?

  • Replies:3
  • Forum posts: 13

Jul 11, 2016, 11:40:40 PM via Website

The build log in your platform should have a section on what consumes disk space. Generally this will be media like music, and high resolution images.

For music, you could reduce the sample rate in a program like Audacity.

For images, think if a regular user looking at a 5-inch screen will actually notice a high resolution image.

Deactivated Account

  • Forum posts: 266

Jul 12, 2016, 6:39:20 AM via Website

Proguard can reduce an APK-file size by cutting unused methods from source.
Use the option "minifyEnabled" in Gradle, and Proguard will do it and will obfuscate your code also.

Deactivated Account

  • Forum posts: 4

Jan 9, 2017, 1:08:18 PM via Website

APK contains a zip file of all the things that your mobile application has including Java class files, resource files among others.

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.