美文网首页
Mac环境配置你的adb命令

Mac环境配置你的adb命令

作者: 秃渐强 | 来源:发表于2019-01-16 17:12 被阅读0次



Windows中配置环境变量很简单,但是到了mac配置环境变量需要.bash_profile文件

1.生成.bash_profile文件

1. 打开terminal终端。

2.创建.bash_profile文件,输入命令:touch .bash_profile 

3.打开.bash_profile文件,命令行输入open -e .bash_profile 此命令行输入完毕后,会自动弹出 .bash_profile 文件的编辑窗口 

4.开始对你的.bash_profile文件进行编辑

如下:

ANDROID_HOME=/Users/YourUsername/Library/Android/sdk

export PATH=$PATH:$ANDROID_HOME/tools

export PATH=$PATH:$ANDROID_HOME/platform-tools

2.保存.bash_profile文件

 关闭.bash_profile文件,在你的终端中输入source .bash_profile即可

3.输入adb命令测试是否配置正确

相关文章

网友评论

      本文标题:Mac环境配置你的adb命令

      本文链接:https://www.haomeiwen.com/subject/qqjmdqtx.html