在mac下面配置adb之后一直都不起作用,每次使用都需要source .bash_profile后才能使用.
今天大神提醒,是zsh的问题。
解决方案:
在.bash_profile中添加(各种教程中都有)
export PATH=${PATH}:/Users/james/Documents/adt-bundle-mac/sdk/platform-tools/;Applications/Android Studio.app/sdk/platform-tools
然后找到User目录下面的.zshrc文件,我的在james/.zshrc.在文件最后添加
# Enable my profile
source ~/.bash_profile
ok 问题解决,感谢大神