Mac上配置adb

来源:互联网 发布:图书编辑有前途么 知乎 编辑:程序博客网 时间:2024/05/16 11:18

在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 查看已经配置完成。

这里写图片描述

原创粉丝点击