Visual Studio : The Android SDK Directory could not be found. Please set via /p:AndroidSdkDirectory

后端 未结 3 1824
我在风中等你
我在风中等你 2021-02-19 22:11

I have installed Xamarin plugin for Visual Studio 2012.

And when create an Android Project and build the same. I am getting the following error.

E

3条回答
  •  失恋的感觉
    2021-02-19 22:43

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

    Right click on the Build Definition and Edit Build Definition

    Goto Process -> Advanced -> MSBuild Arguments and append the below parameter value to it

    /p:AndroidSdkDirectory=C:\android-sdk

    it should work.

提交回复
热议问题