1.启动终端工具
2.输入cd ~/ 进入当前用户的home目录
3.创建.bash_profile文件:
touch .bash_profile
4.打开并编辑:
open .bash_profile
5.输入以下内容:
ANDROID_HOME=/Users/tangbincheng/developer/adt-bundle-mac-x86_64-20131030/sdk
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
export PATH=${PATH}:${ANDROID_HOME}/tools
6.保存关闭
7.更新:
source .bash_profile
8.然后在终端输入adb来确认
2.输入cd ~/ 进入当前用户的home目录
3.创建.bash_profile文件:
touch .bash_profile
4.打开并编辑:
open .bash_profile
5.输入以下内容:
ANDROID_HOME=/Users/tangbincheng/developer/adt-bundle-mac-x86_64-20131030/sdk
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
export PATH=${PATH}:${ANDROID_HOME}/tools
6.保存关闭
7.更新:
source .bash_profile
8.然后在终端输入adb来确认