I'm developing an Android app using Xamarin latest version and Visual Studio latest version aiming Android SDK 8.0. The app is in Beta track (no release yet). I've been publishing updates of my app for 2 months using Google Play console, but something weird happened on my last update, because download size of my app growed from 14.16 MB to 29.80 MB and I haven't done anything different in my last update.
My app apk has always been 28 - 29 MB on disk (.apk size) and download size 14 MB aprox. In my last update I haven't done anything particulary big, just changed code logic and added 4 new resources (pngs total size: 43KB), no new dlls o references, no new componentes. If I use Android Studio apk analyzer on my last apk update, it says my download size should be 13,4 MB, but it seems that Google Play console does not want to reduce download size any more.
Android Studio shows download size should be 13,4 MB, but download size is actually 29 MB:
Pls your help. Thanks.
2 Answers
Answers 1
I updated Visual Studio from version 15.7.1 to 15.7.3
Visual Studio 15.7.1
to 15.7.3
= Xamarin.Android 8.3.0.19
to 8.3.3.2
, consult releases.xamarin.com for details.
So the Mono runtime shared library got updated, thus the basically the whole apk is being downloaded again.
Answers 2
Have you tried Linking your app on release ?
Xamarin.Android applications use a linker to reduce the size of the application. The linker employes static analysis of your application to determine which assemblies are actually used, which types are actually used, and which members are actually used.
Used correctly it can cut your app size in half.
You can get more information here
0 comments:
Post a Comment