Compile Xamarin App for Android in release mode

I encountered multiple times the issue when the build of Xamarin app for Android simply didn’t work in release mode without any obvious reason. Finally looks like I got what should be the appropriate configuration.

So, make sure that you have “Options” for Android project as described below:

1. Build -> General

screen01

2. Build -> Android Build -> Linker -> Linker Options

screen02

3. Build -> Android Application (Minimum: 15+; Target: 21+)

screen03

Pay attention to the fact that “Target Framework” in the item 1 should be the same as “Target Android version” in the item 3, you can find the table with appropriate relations between Android name and APIs here: https://source.android.com/source/build-numbers.html

, , ,

  1. How to solve the issues when building Xamarin solution for Android on Mac | Bykov TechnoBlog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: