Default Android Virtual Device Manager (AVD) folder is located is in C:\Users\<user_name>\.android\avd. To move it to a new location perform following steps:
- Close Android Studio
- Control Panel > System > Advanced System Settings > Environment Variables
- Add a new User variable:
- Variable Name: ANDROID_SDK_HOME
- Variable Value: D:\Android_SDK_HOME
Replace D:\Android_SDK_HOME with the path you want become your new AVD folder root.
The path you enter cannot be root folder of your Android SDK (but can be a subfolder).
- Open Android Studio. Make sure a folder called .android was created in your new location.
- Move avd folder from the old location (C:\Users\<user_name>\.android) to the new one (D:\Android_SDK_HOME\.android).
February 2017
Android Studio 2.3
also make sure to update new path in avd ini file.
Thank you so much, i spent hours trying to change the directory
Worked fine on Android Studio Flamingo | 2022.2.1 Patch 2
13/08/2023
This did not worked on my system and I am getting
Error while waiting for device: The emulator process for AVD Pixel_6_Pro_API_33 has terminated.
It is plain simple Hello World Activity App and no specific coding.
make sure to update new path in avd ini file.
Increase ADB Timeout
This is a life saver tip! Big thanks