Xamarin build started producing errors due to missing NDK

Dario Senić's Avatar

Dario Senić

23 May, 2018 02:00 PM


Seems something is changed on the virtual image causing our build to fail. Image used is Visual Studio 2017. Error is due to missing NDK for android. Indeed, when I connect to the VM I see that NDK is not installed on the path seen in the log. Same build that ran without problems 8 days ago is now failing.
Does anyone has solution for this issue?

The log follows:

  2) XA3005: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2374,3): The detected Android NDK version is incompatible with the targeted LLVM configuration, please upgrade to NDK r10d or newer.
  3) : C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2374,3): error XA5101: Missing Android NDK toolchains directory 'C:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r13b\toolchains'. Please install the Android NDK.
  4)    at Xamarin.Android.Tasks.NdkUtil.GetNdkToolchainDirectories(String toolchainsPath, AndroidTargetArch arch)
  5)    at Xamarin.Android.Tasks.NdkUtil.GetNdkToolchainPath(String androidNdkPath, AndroidTargetArch arch)
  6)    at Xamarin.Android.Tasks.NdkUtil.GetNdkTool(String androidNdkPath, AndroidTargetArch arch, String tool)
  7)    at Xamarin.Android.Tasks.NdkUtil.GetNdkToolPrefix(String androidNdkPath, AndroidTargetArch arch)
  1. Support Staff 1 Posted by Feodor Fitsner on 23 May, 2018 02:13 PM

    Feodor Fitsner's Avatar

    Will take a look and fix in the coming days, thanks for reporting that! Added a new issue: https://github.com/appveyor/ci/issues/2368

    Most probably it was auto-unchecked by VS installer while upgrading VS from 15.6 to 15.7 - usually 15.x upgrades are painful.

  2. Support Staff 2 Posted by Feodor Fitsner on 01 Jun, 2018 05:37 PM

    Feodor Fitsner's Avatar
  3. Ilya Finkelshteyn closed this discussion on 31 Aug, 2018 06:52 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac