I moved all ~/.android/avd/*
contents to the new directory and set the env variable (in ~/.bash_profile
):
$ echo $ANDROID_AVD_HOME
/Volumes/VMs/avd/
$ ls $ANDROID_AVD_HOME
Nexus_S_API_28.avd Pixel_3_API_23_x86.avd Pixel_3_API_28_x86.avd Pixel_3a_x86_64_API_29.avd SGS9_Plus_API_28.avd
Nexus_S_API_28.ini Pixel_3_API_23_x86.ini Pixel_3_API_28_x86.ini Pixel_3a_x86_64_API_29.ini SGS9_Plus_API_28.ini
And restarted Android Studio, but AVD Manager does not see these images.
New emulators are also created in the old directory:
$ ls ~/.android/avd/
Pixel_3a_XL_API_29.avd Pixel_3a_XL_API_29.ini
Android Studio 3.5.2, macOS 10.13.6.
What's wrong?