locked
The Android SDK Directory could not be found. RRS feed

  • Question

  • User255367 posted

    Hi,

    I'm working on a Xamarin crossplatform project. I'm working with VS 2015 and TFS as CI and Buildserver. First I worked on the Android project and everything was ok. The build on the TFS was successfully. After that I added a Windows Phone 8 project. Local on my PC everything is still ok, but the build ond the TFS fails.

    The errormessage I get is: "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(569,2): Error XA5205: The Android SDK Directory could not be found. Please set via /p:AndroidSdkDirectory."

    I tried to fill in this as a MSBuild-Argumente /p:AndroidSdkDirectory=C:\android-sdk

    but it still don't work.

    Any Ideas?

    Thursday, October 27, 2016 10:46 AM

Answers

  • User255367 posted

    Thanks for your answer but I solved it :smile: The Problem was the missing Android SDK Tools and Android SDK Platform-tools on the TFS. I have no idea why they were missing and it was working befor.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, October 27, 2016 2:25 PM

All replies

  • User218392 posted

    in VS go tools-->options--->Xamarin from there see the all jdk and sdk paths are correct or not :)

    Thursday, October 27, 2016 2:06 PM
  • User255367 posted

    Thanks for your answer but I solved it :smile: The Problem was the missing Android SDK Tools and Android SDK Platform-tools on the TFS. I have no idea why they were missing and it was working befor.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, October 27, 2016 2:25 PM
  • User218392 posted

    ohk bro sometimes happens :blush:

    Thursday, October 27, 2016 2:27 PM
  • User368053 posted

    The Android SDK Directory could not be found .Getting this error. All the sdks are in correct path.Please any one have solution for this.

    Monday, April 30, 2018 6:03 AM