Skip to content

A brief tutorial on setting up your environment variables on macOS after installing Android Studio.

Notifications You must be signed in to change notification settings

terofeev/android-macos-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

This is a quick guide on how to set up your environment variables on macOS after installing Android Studio.

Zsh Setup

  1. Create or open your .zshrc file:
touch ~/.zshrc; open ~/.zshrc
  1. Insert the following lines into the opened .zshrc file:
# Set the JAVA_HOME variable to the location of Android Studio's embedded JDK
export JAVA_HOME=/Applications/Android\ Studio.app/Contents/jbr/Contents/Home

# Add Android SDK platform-tools to the PATH
export PATH="$HOME/Library/Android/sdk/platform-tools:$PATH"
  1. Optional: Verify the Android SDK Path (modify if necessary):
# Make sure to update the path below if your Android SDK is located in a different directory
export PATH="$HOME/path/to/your/Android/sdk/platform-tools:$PATH"
  1. Apply changes immediately by sourcing the .zshrc file:
source ~/.zshrc

About

A brief tutorial on setting up your environment variables on macOS after installing Android Studio.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published