install java, jdk, sdk.... first
use vim: vi ~/.bashrc and vi ~/.bash_profile ( use vim to create file) then paste below lines to that. ( use shift + zz to save and close vim or or esc button and :x)
if file is exist, you can open with nano: sudo nano ~/.bash_profile
(prioritize: ~/.bash_profile)
export ANDROID_HOME=/Users/cee/Library/Android/sdk