2 Answers2

0

Check your JDK, and try to change it for 'latest' at -> Visual Studio -> Tools -> Options ->Xamarin -> Android Settings.

pjrki
  • 248
  • 1
  • 3
  • 15
0

You will get this error when first upgrading to Android SDK build tools v24 if you are not targeting JDK 8. For notes and various workarounds see: https://releases.xamarin.com/technical-bulletin-android-sdk-build-tools-24/

I have pasted some workarounds from the above link for your convenience:

  1. Update to Java JDK 8, and then make sure that JDK 8 is selected in the Xamarin preferences: Visual Studio: Tools > Options > Xamarin > Android Settings > Java Development Kit Location. Xamarin Studio (on Mac): Xamarin Studio > Preferences > Projects > SDK Locations > Android > Java SDK (JDK).
  2. Uninstall all Android SDK Build-tools versions 24 and higher via the Android SDK manager.
  3. Set the AndroidSdkBuildToolsVersion MSBuild property to an earlier version. For example, if you also have version 23.0.3 installed, you could add the following line within the top <PropertyGroup> element in the Android project .csproj file: <AndroidSdkBuildToolsVersion>23.0.3</AndroidSdkBuildToolsVersion>
Steven Mark Ford
  • 3,372
  • 21
  • 32