Unable to create new Blank App (Android) in Visual Studio 2015

16,352

Solution 1

Visual Studio had a problem to install Android SDK tools completely. In Android SDK Manager I had just Android SDK tools, but VS need Android SDK Platform-tools too. I installed Platform-tools manually with Android SDK Manager, then VS could recognize adb.exe file in the Platform-tools folder. So the error disappeared and now Android projects create properly.

Solution 2

Go to Xamarin Studio Tools-->Options-->SDK

Give the proper locations and restart Visual Studio.This worked for me

Solution 3

I encountered this issue because Visual Studio was unable to download the Android SDK due to network issues. Luckily, I already had an installation of the SDK because I have Android Studio installed. There are some 3rd party sources to download the SDK directly, but so far as I know the only official way is to install Android Studio.

Once the SDK is installed via one method or another, you need to supply the path to Visual Studio.

  1. From Visual Studio, open the Tools menu and select Options.
  2. From the Options dialog, expand the Xamarin menu on the left and choose Android Settings.
  3. Under Android SDK Location choose Change.
  4. Supply the location of your SDK.
    • Mine for Example was C:\Users\USER\AppData\Local\Android\sdk

Solution 4

For VS2015, Tools > Options > (options screen pops up) > Xamarin > Android Settings

Click change on "Android SDK Location" to enter the SDK path.

I already had Android Studio installed with an up-to-date SDK, so I used the same path to avoid duplication. The path was; "C:\Users[my windows user name]\AppData\Local\Android\sdk"

Solution 5

In Visual Studio 2015 Community Tools->Options->Xamarin choose change next to Android SDK Location. Assuming you have already installed the Android SDK, perhaps during an Android Studio installation, browse to the Android SDK Location.

If you do not know where the Android SDK is installed and you have installed Android Studio 2.0 then open Android Studio and read the path at Tools->Android->SDK Manager->Android SDK Location.

In my case, the SDK was installed to %userprofile%\appdata\local\android\sdk.

Share:
16,352

Related videos on Youtube

Parham.D
Author by

Parham.D

Updated on July 19, 2022

Comments

  • Parham.D
    Parham.D almost 2 years

    I am trying to create a new Blank App (Android) in Visual Studio 2015 with installed Xamarin, Android SDK and Android emulator. When trying to create a new Project, I just get a popup with the message:

    Value cannot be null. Parameter name: path1

    Solution Explorer is empty and just a empty folder is created in Projects folder.

    How can I solve it?

    • CDrosos
      CDrosos almost 9 years
      It seems that Visual Studio cant take the path of the project, for now to workaround it you can try creating an empty project on xamarin and then open it from Visual Studio and see if everything work ok
  • CptObvious
    CptObvious over 8 years
    +1 This helped me to fix the problem, but I found those settings here: Visual Studio > Extras > Options > Xamarin > Android SDK Location
  • NoWar
    NoWar about 8 years
    So which are steps to resolve it? Would mind to tell us?
  • Parham.D
    Parham.D about 8 years
    For men: In VS 2015 -> Tools -> Android -> Android SDK Manager. In the opened window, select Android SDK Platform-tools in Tools category. Then just click the Install Packages button. Good Luck.
  • NoWar
    NoWar about 8 years
    Thanks. But I cannot see VS 2015 -> Tools -> Android I see only VS 2015 -> Tools -> Xamarin.... Do I missing soimething in VS2015 ?
  • Parham.D
    Parham.D about 8 years
    When you install vs you have to select android options , like SDK and so on. Now you can do it in add/remove programs in control panel.
  • Farshid Saberi
    Farshid Saberi about 8 years
    You can find the same settings at Visual Studio > Options > Xamarin > Android Settings
  • Muhammad Ali
    Muhammad Ali about 8 years
    Can you provide the download link to Android SDK ? I tried repairing my VS15 twice but still it would not install Android SDK correctly.
  • Muhammad Ali
    Muhammad Ali about 8 years
    I downloaded the Android Studio from Google and it installed Android Studio. Later I just provided the path to Android SDK on VS15 and the green check appeared. Android Projects are created properly. Link for Android Studio ... developer.android.com/sdk/index.html#Other
  • b15
    b15 about 8 years
    in my case I already had android studio installed. Pointing it to the correct dsk was the fix, thank you :)