Configuring the Xamarin Android Toolchain

What

Iโ€™m probably going to wipe my computer when I upgrade some bits soon.

There are some niggles in setting up Xamarin (VS2015 Win10) to produce publishable APKs with the latest build tools.

This is a run down of the bits.

Visual Studio

If you already have Android SDK installed, Visual Studio might not detect it so beware. Either google a solution or just delete it afterwards.

Android SDK

Visual Studio will install Android SDK inside of โ€œProgram Files (x86)โ€. Unfortunately this can upset Proguard so move the SDK folder somewhere else.

In Visual Studio go to the Options>Xamarin and set the new location of the Android SDK.

Build Tools 25 and Java 8

In order to use the latest build tools (25.x.x) Java 8 SDK (1.8) is needed. Visual Studio most probably installed Java 7 SDK with build tools 24.x.x. The Proguard installed with the Android SDK will probably also be out of date, not compatible with JDK 1.8.

Test It