---
title: " Mac系统配置adb环境变量"
author: "duyangsss"
date: "2014-07-31T12:25:52Z"
tags: []
categories: ["移动开发"]
slug: "mac-adb"
draft: false
lastmod: "2014-07-31T12:31:51Z"
id: 2098618
url: "https://duyangsss.iteye.com/blog/2098618"
---

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。
