MacOS配置ADB

前言

常用的ADB命令可以参考我的另一篇文章
最常用的ADB命令和最详细解析都在这里

流程

1.打开终端 Terminal;
2.查看HOME目录,在终端输入命令,“echo $HOME”;

WebbLindeMBP:~ webblinHOME
/Users/webblin

3.创建 .bash_profile文件,在终端输入命令,“touch .bash_profile”;

WebbLindeMBP:~ webblin$ touch .bash_profile

4.打开 .bash_profile文件,在终端输入命令,“open - e .bash_profile”

WebbLindeMBP:~ webblin$ open -e .bash_profile

5.在打开的 .bash_profile文件添加下面内容:

export PATH=${PATH}:/Users/你自己的用户名/Library/Android/sdk/platform-tools

6069999-5dbc2ce58249d1bc.png

6.保存、推出;
7.在终端输入命令,“source .bash_profile”

WebbLindeMBP:~ webblin$ source .bash_profile

8.在终端输入命令“adb”提示 Android Debug Bridge version x.x.xx即可

WebbLindeMBP:~ webblin$ adb
Android Debug Bridge version 1.0.40
Version 4986621
Installed as /Users/webblin/Library/Android/sdk/platform-tools/adb

猜你喜欢

转载自blog.csdn.net/weixin_33897722/article/details/87078520
今日推荐