Mac系统配置adb环境变量

1.找到android sdk的本地路径,
  adb命令在platform-tool下面,记为XXXX
  我的路径是(/Users/going-west/project/going/go-android/sdk/platform-tools)
2.打开终端输入
touch .bash_profile  
open -e .bash_profile  点回车
3.添加路径
.bash_profile打开了,我们在这里添加路径,
如果打开的文档里面已经有内容,我们只要之后添加;XXXX(注意前面一定要用分号隔开),
如果是一个空白文档的话,我们就输入一下内容
export PATH=${PATH}:XXXX
保存,关掉这个文档,
4.终端输入命令  source .bash_profile
5.终端输入命令 adb点回车,如果未显示command not found,说明此命令有效,环境便亮设置完成。

android 调试卡在:Waiting for Debugger - Application XXX is waiting for the debugger to Attach" 解决方法


cmd进入命令行,执行adb kill-server,adb start-server。

猜你喜欢

转载自duyangsss.iteye.com/blog/2098618