App Size Getting Increased
Recently i have used Fused Location API for location purpose. Before applying google play service library com.google.android.gms:play-services:8.3.0 the app size was 4.3MB(4,499,23
Solution 1:
Take a look here at setting up Google Play Services:
https://developers.google.com/android/guides/setup
It is broken down into modules so you can import only the API's you need. In your case you would need only
com.google.android.gms:play-services-location:8.3.0
instead of
com.google.android.gms:play-services:8.3.0
which is the entire package.
Additionally, if you are running Proguard at the end of your packaging (minifyEnabled true
inside your build.gradle
), it will strip out classes which your codebase isn't using, further minimizing the size of your final APK.
Solution 2:
How about using only location dependency?
com.google.android.gms:play-services-location:8.3.0
Post a Comment for "App Size Getting Increased"