macOS配置adb环境

阅读 110

2023-02-01


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)

0 0 举报