Imagine you’d like to reclaim space on your Mac’s main hard drive by moving your Android Studio Virtual Devices (the phones and tablets you run in ...
For further actions, you may consider blocking this person and/or reporting abuse
Wow, thanks! A macOS quirk I hadn't expected. This is something Android Studio could have worked around, if it had just loaded
ANDROID_AVD_HOMEfrom my default shell's~/.zshrcconfig. It seems like VSCode with the Flutter extension does this, and that works much more intuitively.Thank you for your post.
I am able to change AVD folder location. After restarting Androidstudio new .ini and device folder was created. But AVD device is not loading ,refer attached image :(
Thank you for the great finding, saved me hours on search on the Internet.
It is PITA to deal with Android Studio env variables
Never thought of the "launchctl"
Yo!! Can you make a video demonstrating this. I don't understand this "/Users/[YOUR_USER_NAME]/.android_studio_env_vars". I can't create a folder like this.
/Users/[YOUR_USER_NAME]is the macOS home directory of your currently logged in user. You don't need to create it, it already exists!You need to create the hidden text file
.android_studio_env_varswithin your home directory. You can find your home folder with a bunch of tutorials on the internet (like this one). To create the text file, you could:.android_studio_env_varsto your home folder.export ANDROID_AVD_HOME='/Volumes/LargeHDD/Android/avd'
launchctl setenv ANDROID_AVD_HOME "$ANDROID_AVD_HOME"
That worked for me.
Also I had to manually change all ini files.