How to reduce APK size in Android ?
Android App Developers

How to reduce APK size in Android ?

Read the How to reduce APK size in Android ? thread within the Android App Developers forum. You can reply to this post and participate in this discussion on the AppFutura mobile app development forum.
Need to hire an app developer?
Post your project
in 5 minutes for free
This is the Android app development forum. Pick one of the following Android app development topics and participate. You can also start your own Android app development discussion.
Ashish_Bisht
 
Posts: 1

How to reduce APK size in Android ?

on Android App Developers Forum at Thu Jul 14, 2016 12:51 pm

Hi friends, i am an Android developer. I am here to share how can we reduce APK size in Android OS which has been the best-selling OS on tablets and on smartphones.
Christie37
 
Posts: 55

Re: How to reduce APK size in Android ?

on Android App Developers Forum at Wed Dec 21, 2016 7:12 am

1.Use ProGaurd.
2.Remove any debug info you have in the app ( statements such as Log.i()). ...
3.Use recommended media formats. ...
4.Compress images using OptiPNG or PNGCrush.
5.Use 9patch to scale images.
maddy
 
Posts: 1

Re: How to reduce APK size in Android ?

on Android App Developers Forum at Sun Jan 08, 2017 12:43 pm

Hi ,
Images play a big role in increasing app sizes , try to use minumal images in app , if used use reduced sizes. While placing top header in app or in slider design try to use colour code instead of images
AppInventiv
 

Posts: 727

Re: How to reduce APK size in Android ?

on Android App Developers Forum at Thu Jul 13, 2017 10:09 am

Hi,

I would recommend that you compress the .jpg files as much as possible, this should greatly reduce the size of your .apk file. A tool such as Paint.NET which is free should help you do this. It has great resizing options.
HokuApps123
 
Posts: 8

Re: How to reduce APK size in Android ?

on Android App Developers Forum at Mon Dec 18, 2017 11:20 am

Application size mostly depends upon images and other media elements. If you use compressed images with good quality then surely the app size decreases lot also minimize the code length and avoid warning messages.
Developers
 
Posts: 100

Re: How to reduce APK size in Android ?

on Android App Developers Forum at Thu Dec 21, 2017 10:09 am

Hey! In the lasts months we published an article on our blog: The number of downloads may depend on the size of the mobile app, so probably it may give you some hints about what to do on reducing APK sizes on Android apps.
Also, I just wanted to inform that we recently opened a new thread on our forum about the new requirements on Android's Play Store that Google announced in the past days. Only native apps with 64-bit support on Android's Play Store
Jaenelle Isidro
 
Posts: 7

Re: How to reduce APK size in Android ?

on Android App Developers Forum at Tue Jan 09, 2018 6:45 pm

using the best compression on the type of asset may give you a huge savings in apk size.
for example jpeg should be used in photographs and png for drawings.
RozekEnhance
 
Posts: 1

Re: How to reduce APK size in Android ?

on Android App Developers Forum at Wed Jan 10, 2018 8:39 pm

Some times having multiple SDKs can bloat your app. When using Enhance to integrate services such as ads or analytics, we can actually make your file size smaller. Many times these different SDKs actually share the same files, so we can pull them so you don't have too much bloating your project.

Take a look, if it is something that can help out, give it a try.
Here is a link : Implement and update any mobile SDK in minutes, for free.
Good Luck!
sophie
 
Posts: 6

Re: How to reduce APK size in Android ?

on Android App Developers Forum at Mon Jan 15, 2018 7:55 am

hello, you can use this code if you run your project in the android studio.
Code: Select all
apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"
    useLibrary 'org.apache.http.legacy'
    defaultConfig {
        applicationId "com.oi.food"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    packagingOptions{
        exclude 'AndroidManifest.xml'
    } }

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile files('libs/httpmime-4.1.1.jar')
    compile files('libs/apache-mime4j-0.6.jar')
    compile 'com.squareup.picasso:picasso:2.3.2'
    compile 'com.android.support:design:23.1.1'
    compile 'com.android.support:recyclerview-v7:23.1.1'
    compile 'com.paypal.sdk:paypal-android-sdk:2.14.1' }
Return to Android App Developers