Possible to change where Android Virtual Devices are saved?

primehunter326 picture primehunter326 · May 15, 2010 · Viewed 156.5k times · Source

I've set up the Android SDK and Eclipse on my machine running Windows XP and AVDs (Android Virtual Devices) are saved to "Documents and Settings\user\.android" by default. Is there any way to change this behavior? I have all of the other components saved in a directory on a separate partition and would like everything to be consolidated. Obviously not a huge deal but does anyone here know a workaround for this?

Answer

wloescher picture wloescher · Jan 10, 2011

Add a new user environment variable (Windows 7):

  1. Start Menu > Control Panel > System > Advanced System Settings (on the left) > Environment Variables

  2. Add a new user variable (at the top) that points your home user directory:

Variable name: ANDROID_SDK_HOME
Variable value: a path to a directory of your choice