EDIT 1
There is a solution pointed in VS Emulator for Android troubleshooting (link):
- Open Registry Editor by selecting Run from the Start buttons context menu, typing regedit in the dialog box, and choosing OK.
- Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Android SDK Tools in the folder tree on the left.
- Modify the Path registry variable to match the path to your Android SDK.
However, this solution seems out-of-date for current available VS Emu 4 Android versions. I can not find the registry folder in the tree.
EDIT 2
Here is a simple way to do, by which I managed to change the root Path of vhd.
Situation 1: Already installed
- Rename folder
%USERPROFILE%\AppData\Local\Microsoft\VisualStudioEmulator\Android\Containers\Local\Devices\vhd\
to something else, for backup.
- Create folder
D:\emulators
.
- Open cmd command-line, type in
MKLINK /J %USERPROFILE%\AppData\Local\Microsoft\VisualStudioEmulator\Android\Containers\Local\Devices\vhd\ D:\emulators
, press Enter.
- After junction made, move everything in backuped vhd folder to
D:\emulators
.
- You've done.
Situation 2: Not installed yet
- The steps are similar to those in Situation 1, but you do not need to rename for backup, nor move the backuped stuff to
D:\emulators
.
- You just need to make the junction, and then install VSEmu4Android.
EDIT 3
NOTE:
For proper usage of vhd's in Hyper-V (which is used by VSEmu4Android), your D:\emulators
folder and files inside should not be compressed.