vim ~/.zprofile # zsh
vim ~/.bash_profile # bash
# 貼上以下
export PATH
export ANDROID_HOME={你的android studio - sdk path}
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platforms-tools
export PATH=${PATH}:${ANDROID_HOME}/build-tools