Can't setup Android SDK on Visual Studio 2015

KillemAll picture KillemAll · Feb 22, 2016 · Viewed 7.2k times · Source

I just installed my VS2015 enterprise and I want to try "cross platform" or "Android blank App" project, but in both , I got a message box with this error

Value cannot be null
Parameter name:path1

When I try to run Tools/Android /Android SDK Manager I got a Visual Studio error:

Error: Command did not execute uccessfully due to an unexpected exeption.Please check the output window for aditional information

In the error window I got

Xamarin.Android for Visual Studio requires Android SDK. Please set Android SDK path on Tools->Options->Xamarin->Android Settings menu

enter image description here

When I open start/all programs/Android SDK tools/SDK Manager/tools/options enter image description here

After a while I got this: enter image description here

It looks like it can't download something, I guess there is no Android SDK installed on my PC.

I've tried disabling my firewall but it's the same, any idea?

Answer

anevil picture anevil · May 11, 2016

Looks like there is ANDROID SDK manager installed in your machine.

I have same problem with this because our network are behind proxy. What I do is fill in the HTTP proxy server IP and port. Then try to update the components one more time. This time you will prompted to key in the user name and password for every component that is currently being installed.

Somehow still failed.

So my another attempt is just key in the user name with a blank password. And then its working, and updated of ANDROID SDK components has been done successfully.