Visual Studio: Android SDK directory not found. Please install via / p: AndroidSdkDirectory

I installed the Xamarin plugin for Visual Studio 2012.

And when creating an Android project and creating it. I get the following error.

Error 1 The Android SDK Directory could not be found. Please set via /p:AndroidSdkDirectory. AndroidApplication1

I think this error is due to some mapping.

Please help in solving this problem.

Thanks in advance.

+7
visual-studio-2012 xamarin-studio
source share
2 answers

You can also set the opening location of the Android SDK

 Tools -> Options -> Xamarin -> Android Settings. 

Or you need to reinstall the Android SDK.

+5
source share

You can solve this by editing the assembly definition in VS 2012.

Right-click on the assembly definition and edit the assembly definition

Go to the process → Advanced → MSBuild Arguments and add the parameter value below to it

/ p: AndroidSdkDirectory = C: \ Android-SDK

he should work.

+4
source share

All Articles