How to make Visual Studio 2015 installer know that I already have Android SDK?

zgrkpnr89 picture zgrkpnr89 · Aug 3, 2015 · Viewed 26.1k times · Source

When I am installing Visual Studio 2015 I realized that it says Java SE Development Kit is already exists on the computer. I think installer knew it because of environment variables. That's why I set ANDROID_SDK_HOME and ANDROID_NDK environment variables.

But when I launch the installer again it is still aware of only Java Development Kit.

Do I set wrong environment names? How to make the installer know that I already have SDK and NDK?

Answer

Abdul Rauf picture Abdul Rauf · Sep 18, 2015

Visual Studio 2015 installer doesn't use ANDROID_SDK_HOME environment variable to detect SDK. You have to create the following registry entry.

enter image description here

  • Open REGEDIT and navigate to HKEY_LOCAL_MACHINE\SOFTWARE. You have to add new key Android SDK Tools (if not already present) by right clicking SOFTWARE.

  • Now add a new String Value Path by right clicking Android SDK Tools and enter path of android sdk as its value

I have tested it and visual studio 2015 installer successfully detected my existing Android SDK

Reference: https://bugzilla.xamarin.com/show_bug.cgi?id=859#c18