Xamarin Development Android App pack apk

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.