Harry .Naeem
Harry .Naeem

Reputation: 1301

Visual Studio 2015 does not install Android SDK for Xamarin

I am moving towards Xamarin for cross-platform application development. I already had VS2015 installed, I downloaded Xamarin tools(vstoolsforxamarin.exe) from their website and when I install them after a long wait VS says "setup completed with errors"and it does not download and install Android SDK for API 19,20,23, It always say:"Please check your internet connection and try again" and i am sure that my internet connection doesn't get disturbed during all this process. I have tried this 3 times now, tried by uninstalling VS2015, installing it again but got the same error. What is the problem that is causing this? I already have Android Studio installed, with its SDK manager. Any help would be appreciated, that to get Xamarin running in VS2015.

Edit:

Solution: I already had Android Studio and its SDK on my system, going to Tools>Options>Xamarin and giving path of the Android SDK solved my problem.

Upvotes: 10

Views: 29304

Answers (5)

Ryan Filpi
Ryan Filpi

Reputation: 11

I had the same issue and it was proxy-related.

BEFORE installing Visual Studio, create a file at this location:

%USERPROFILE%.android\androidtool.cfg

In the androidtool.cfg file that you just created, place the following contents. Make sure to update “http.proxyPort” and “http.proxyHost” in the file!

### Settings for Android Tool
#Fri Jan 08 02:53:27 UTC 2016
http.proxyPort=8888
sdkman.enable.previews=false
http.proxyHost=127.0.0.1
sdkman.ask.adb.restart=false
sdkman.show.update.only=true
sdkman.force.http=false
sdkman.use.dl.cache=true

Install Visual Studio normally

Source: http://hauge.cloud/2016/09/22/visual-studio-2015-install-failures-android-sdk-setup-behind-a-proxy/

Upvotes: 1

pixel
pixel

Reputation: 10547

make sure you have jdk installed

Upvotes: 0

user7202707
user7202707

Reputation: 1

I had to disable my security software (Avast) as it saw it as a potential threat and sandboxed it (Android SDK). After doing that, the software installed flawlessly

Upvotes: 0

smoenssen
smoenssen

Reputation: 1

I had this problem and found out it was because I did not have enough disk space. I didn't find this out until I manually ran SDK Manager.exe, set my proxy settings, and tried to download a number of SDKs.

Upvotes: 0

user2547541
user2547541

Reputation:

Visual Studio installs the SDK @ C:\Program Files (x86)\Android\android-sdk Either go to that folder and open SDK Manager in administrator mode and install if any new updates are required. And in case Visual Studio did not manage to install the SDK, do it manually and change the path for SDK via Tools>Options>Xamarin to the location of SDK.

Upvotes: 6

Related Questions