16

I've installed VS 2017 in its default path (C drive) but its used up most of my drive space due to the large Android folder at C:\Users\USERNAME\Local\Android. This folder was auto created by the VS 2017 installer. How do I move it to another drive and have VS detect it?

I've tried these solutions and they don't work with VS 2017.

Community
  • 1
  • 1
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607

3 Answers3

36

I found the answer at last. Changing the ANDROID_SDK_HOME environment var had no effect. The only way is moving the folder by hand, and then changing the Android SDK path setting under Options > Xamarin > Android Settings.

settings

Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
  • I have just tried to do this, but I cannot change the Options setting above because when I click on the Xamarin node VS just hangs. Any ideas? – Ant Waters Sep 21 '17 at 20:07
  • 1
    Ok, fixed this by copying the Android folder rather than moving it, then changing the "Android SDK location" path. After that I could delete the copy in "C:\Program Files(x86). – Ant Waters Sep 24 '17 at 17:10
0

Please be reminded you also need to change the Start Menu shortcut of SDK Manager and ADK Manager. It is especially important if you "copy" the SDK files to new location. Your old shortcuts are still valid and opening SDK Manager from Start Menu will haunt you with the old SDK path.

Ian Ho
  • 11
  • 5
0

I hope you be fine. I had the same problem.

After last update all, every was restored to write. Try include Android SDK using Visual Studio Installer.

And remember. VS must be opened as Administration always.

Image of VS Installer for simple reference