How to reduce APK size in Android ?

How to reduce APK size in Android ?

Need to hire an IT company?

Post your project

in 5 minutes for free

Ashish Bisht

How to reduce APK size in Android ?

on Android Developers at Jul 14, 2016 13:51

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.
Christie Rodriguez

Re: How to reduce APK size in Android ?

on Android Developers at Dec 21, 2016 07:12

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.

Re: How to reduce APK size in Android ?

on Android Developers at Jul 13, 2017 11:09

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

Re: How to reduce APK size in Android ?

on Android Developers at Dec 18, 2017 11:20

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.
Gerard Escaich

Re: How to reduce APK size in Android ?

on Android Developers at Dec 21, 2017 10:09

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

Re: How to reduce APK size in Android ?

on Android Developers at Jan 09, 2018 18:45

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.
sophie

Re: How to reduce APK size in Android ?

on Android Developers at Jan 15, 2018 07:55

hello, you can use this code if you run your project in the android studio.

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' }
This forum thread discusses How to reduce APK size in Android ?. You can join the discussion by clicking on 'Post a reply'. If you are new to Android Developers Forum, you will need to sign up and create a new account.

How to reduce APK size in Android ? related posts on Android Developers Forum

How to Make Your Restaurant Android App Smart?

by Appinventiv on Android Developers

How to integrate Stripe with Your Android app?

by Appinventiv on Android Developers

How to Take a Secret Snapchat Screenshot

by Mobulous on Android Developers

Reply on this threadPost a reply
Loading...