Original: Xamarin development Android App pack apk
3 ways to build an apk file in Visual Studio using Xamarin to develop Android apps
1, debug, the code directory bin\ debug will automatically generate debugging with ***-signed.apk file, but the file size is very large , not recommended .
2, Release, "Deployment" tick √, generate--Deploy the solution, the code directory bin\Release will automatically generate the deployment with the ***-signed.apk file, file size is relatively small .
3, self-packaged , tools--publish Android application, step-by-step setup package, file size is smaller.
APK size Impact factor
Supported architecture system settings affect the build apk size, Android Project-right-click Properties--application--supportted architectures under Default
Armeabi, armeabi-v7a, x86 are all checked, so the generated apk will be slightly larger, you can not check the unnecessary architecture according to the need, the resulting file will be reduced.
To Xamarin above the Tasky (introduction http://developer.xamarin.com/content/Tasky/source code http://developer.xamarin.com/content/Tasky/ Tasky.zip) As an example to illustrate the size impact
| APK Generation Method |
APK size (K) |
| Debug |
27618 |
Release Armeabi |
4060 |
Release armeabi+armeabi-v7a |
5285 |
Release Armeabi+armeabi-v7a+x86 |
6638 |
Xamarin Development Android App pack apk