Recently, while setting up a React Native Expo project, I needed to set up Android Studio on my M1 Mac. The problem was, while most of the expo documentation is great, this Android Studio setup page was super confusing regarding what to add or edit around environment variables.
So after a little bit of googling (1) (2) I settled on the commands below. They’re just for osX, which, in my case, appears to be running Zsh rather than Bash, but the description includes both (Without testing the Bash version).
Note: These instructions assume you’ve already installed Android Studio.

