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:
- Open Control Panel
- Then go to System and Security
- Then go to System
- Then go to Advanced system settings
- Then go to Change Environment Variables of the User
- Then click create a new environment variables
- Create a new variable named ANDROID_AVD_HOME
- Set its value to your Android directory, like
C:/users/<username>/.android
- Open control panel
- Then go to System
- Then go to Change Environment Variables of the User
- Then click create a new environment variables
- Create a new variable named ANDROID_SDK_HOME
- 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
- Move avd directory to desired location (ex.
D:\Development\avd
) - 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
)
- If you have already AVD, change avdName.ini to
D:\Development\avd\avdName
(ex.D:\Development\avd\Nexus_S_API_22.avd
)