1.终端创建.bash_profile文件
touch .bash_profile
2.终端打开.bash_profile文件
open -e .bash_profile
3.在.bash_profile文件里写
export PATH=${PATH}:接你的sdk路径(在as的tools里面找到sdk Manager)
文件里的内容:
4.使用.bash_profile文件
source .bash_profile
5.检查adb是否安装完成
adb version
出现即表示安装完成