How can I change the path to android\avd in my Android Studio

I tried suggested solution but did not work for me. In my case I have to add a different variable so steps for me were:

  1. Open Control Panel
  2. Then go to System and Security
  3. Then go to System
  4. Then go to Advanced system settings
  5. Then go to Change Environment Variables of the User
  6. Then click create a new environment variables
  7. Create a new variable named ANDROID_AVD_HOME
  8. Set its value to your Android directory, like C:/users/<username>/.android

  1. Open control panel
  2. Then go to System
  3. Then go to Change Environment Variables of the User
  4. Then click create a new environment variables
  5. Create a new variable named ANDROID_SDK_HOME
  6. Set its value to your Android directory, like C:/users/<username>/.android

How can I change the path to android\avd in my Android Studio ?

Let say you want to move avd directory from it's default C:\users\<username>\.android\avd to D:\Development\avd

  1. Move avd directory to desired location (ex. D:\Development\avd)
  2. Change or add environment variable ANDROID_AVD_HOME : D:\Development\avd
    • On Windows: Control Panel > System > Advanced system settings > Environment Variables
    • If variable doesn't exits Click New... and fill with aforementioned data.
    • If variable exists then select variable, click on Edit... and replace variable value with the new path (ex. D:\Development\avd)
  3. If you have already AVD, change avdName.ini to D:\Development\avd\avdName (ex. D:\Development\avd\Nexus_S_API_22.avd)