xamarin – Unable to create new Blank App (Android) in Visual Studio 2015-ThrowExceptions

Exception or error:

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?

How to solve:

Go to Xamarin Studio
Tools–>Options–>SDK

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

###

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

###

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.

###

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.

###

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”

###

in visual studio 2015 go to -> (tools->option->Xamarin) choose android sdk (chenge) get path name that sdk android you downloaded and apply it;

###

Sometimes the SDK might not be installed due to proxy issues. Open up the SDK manager and Click on Tools > Options and enter Your proxy path and port (without http prefix) and then Click on the Package menu > Reload. This will load the SDKs. From here You can install the SDKs You need.
Then go to Visual Studio 2015 and Click on Tools > Options > Xamarin and the Browse to the SDK Path. Usually C:\Program Files (x86) \Android \ Android SDK if You installed for all users on Machine, and C:\User..\App Data if You installed for just one user.

Leave a Reply

Your email address will not be published. Required fields are marked *