美文网首页
Mac 配置android开发ADB工具

Mac 配置android开发ADB工具

作者: figure_ai | 来源:发表于2017-05-22 13:56 被阅读0次
  1. 启动终端
  2. 进入HOME目录 : cd $HOME
  3. 创建.bash_profile : touch.bash_profile
  4. 打开.bash_profile : open -e .bash_profile
  5. 在打开的文本输入以下内容:(这里的路径要根据实际情况修改)
export PATH=${PATH}:/Users/anwser_mac/Library/Android/sdk/platform-tools

export PATH=${PATH}:/Users/anwser_mac/Library/Android/sdk/tools


6.保存并关闭文件。
7.更新刚配置的环境变量: source .bash_profile
8.验证是否配置成功: adb devices

answermacdeiMac:~ anwser_mac$ adb version
Android Debug Bridge version 1.0.39
Revision 5943271ace17-android

相关文章

网友评论

      本文标题: Mac 配置android开发ADB工具

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