Mac上配置adb
在Mac上的Android Studio配置adb
一般Mac上的环境变量的配置都是在 .bash_profile 文件上。
1,打开Mac终端。
2,先查看是否存在 bash_profile 文件。如果不存在。
3,新建 bash_profile (touch bash_profile)
4,打开.bash_profile 文件。(open .bash_profile)
5,然后配置: export
PATH=/Users/liangxing/Library/Android/sdk/platform-tools/:$PATH
(上面是我的sdk的 platform-tools的路径,你可以参照进行书写,然后 保存 bash_profile 文件。)
6,更新配置信息,(source .bash_profile) (很重要,不更新不生效)
7,然后 adb 查看已经配置完成。