Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Visual Studio Emulator for Android vhd install path

Tags:

Is it possible to change the default path that the VS emulator is storing the .vhd files? By default it's set to store them under my %LOCALAPPDATA% folder, but that's on my C drive and I'm running out of space on C.

How can I set it to store them in D:\emulators?

like image 465
Ionian316 Avatar asked Jun 22 '16 20:06

Ionian316


People also ask

How do I change the location on my emulator?

First, run your Android Emulator and click on the three dots on the menus beside. On the left pane, select Location and change the coordinates according to your location. Press the Send button, changes will immediately take effect.

Where is the emulator folder in Android Studio?

On Windows, it's the %LocalAppData%\Android\Sdk directory. This normally expands to C:\Users\<username>\AppData\Local\Android\Sdk , although it might vary based on your system. On macOS, it's the $HOME/Library/Android/sdk directory.

What is the Android SDK location path where the virtual devices will be stored?

The default value is %USERPROFILE%\. android\avd on Windows (or ~/. android/avd on Linux).


1 Answers

@Ionian316

1/ Open regedit.

2/ Go to: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudioEmulator\Android\Configuration\

3/ Find file UserConfigurationPath

4/ Input your path in here:

Default path is: %LOCALAPPDATA%\Microsoft\VisualStudioEmulator\Android

New path example: D:\VisualStudioEmulator\Android

Of course, you should copy from default path to new path for not be error.

like image 62
Phong Nguyễn Avatar answered Sep 28 '22 02:09

Phong Nguyễn