title: Missing Android NDK toolchains directory '\toolchains' when building Xamarin.Android with hosted tfs build server
body: <p>I am trying to set up a <code>TFS Build agent</code> to build my <code>Xamarin.Android</code> project automatically on every check in.</p>
  
  <p>I have followed the steps outlined here: <a href="https://msdn.microsoft.com/library/vs/alm/build/apps/xamarin" rel="noreferrer">https://msdn.microsoft.com/library/vs/alm/build/apps/xamarin</a> for setting up a Hosted build agent.</p>
  
  <p>TFS Build templates also have a <code>Xamarin.Android</code>  template, which you would expect means they are ready to go. This is also backed up from the above link which states you can build a <code>Xamarin.Android</code> solution on a Hosted pool</p>
  
  <p>But I keep getting the following error on building the project:</p>
  
  <blockquote>
    <p>Missing Android NDK toolchains directory '\toolchains'. Please install
    the Android NDK</p>
  </blockquote>
  
  <p>I found a link at Xamarin <a href="https://developer.xamarin.com/guides/cross-platform/ci/configuring_tfs/tfs-and-xa/" rel="noreferrer">https://developer.xamarin.com/guides/cross-platform/ci/configuring_tfs/tfs-and-xa/</a> which says I need to log onto the build machine and copy and paste the Android NDK onto my remote machine.</p>
  
  <p>But obviously with a hosted pool I cannot log onto machine.</p>
  
  <p>Am I missing something in my setup?</p>