title: Xamarin.Android.Common.targets: error : Could not find a part of the path '/platforms'
body: <p>I am trying to debug this error from past 3 days but still unable to solve it. Hope anyone of you can help me and probably others in future.</p>
  
  <p>Where its failing: Whenever I try to deploy the app, deployment fails, with this error:/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2112,3): error : Could not find a part of the path '/platforms'.
  Though prior to this there are few warnings as well like, </p>
  
  <ol>
  <li><p>AndroidManifest.xml //uses-sdk/@android:targetSdkVersion '21' is less than $(TargetFrameworkVersion) 'v7.0'. Using API-24 for ACW compilation</p></li>
  <li><p>Some random conflicts.</p></li>
  </ol>
  
  <p>But these are only warnings, and I shouldn't be concern about them. </p>
  
  <p>What I did so far: </p>
  
  <ol>
  <li>Uninstall/Install Visual studio</li>
  <li>Tried downloading Xamarin studio through its dmg, thinking its IDE issue, but in vain.</li>
  <li>Downloaded all relevant android sdk platforms.</li>
  <li>Deleted/Again loaded the whole project.</li>
  </ol>
  
  <p>but everything in vain. I will be highly thankful if anyone can help me in resolving this or atleast guiding me right direction.</p>
  
  <p>Note: My visual studio version is 7.0.1, if this is of some help.</p>
  
  <p>A more detailed error: /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: Could not find a part of the path '/platforms'.  at System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) [0x00207] in /private/tmp/source-mono-2017-02/bockbuild-2017-02/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/referencesource/mscorlib/system/io/__error.cs:188 </p>
  
  <p><strong>Solved it myself</strong>:</p>
  
  <p><strong>Added the ndk path from Tools -> Add Custom tools -> SDK location -> Android. Look for ndk path, enter the same and run.</strong></p>
  
  <p>Thanks everyone for your help!</p>