0
点赞
收藏
分享

微信扫一扫

macOS配置adb环境


macOS配置adb环境_Android

  1. 查看sdk安装目录​​/Users/yhw/Library/Android/sdk​
  2. 命令行终端执行

// 打开.bash_profile文件
sudo vim ~/.bash_profile

// 编辑.bash_profile文件在末尾添加两行配置
export PATH=${PATH}:/Users/yhw/Library/Android/sdk/platform-tools
export PATH=${PATH}:/Users/yhw/Library/Android/sdk/tools

// 保存退出后更新环境配置
source ~/.bash_profile
// 此时adb命令可用

  1. 重启设备后adb可能不可用,此时进入终端执行​​source ~/.bash_profile​​即可


举报

相关推荐

0 条评论