我试图在 Mac 中设置 env var。
$ open ~/.bash_profile
显示:
export ADB_PATH=~/MyWorkspace/sdk/platform-tools/adb
export PATH=$PATH:$ADB_PATH
我已经重启了机器但是没有效果:
$ adb
-bash: adb: command not found
有什么问题?
更新
也试过这个,没有帮助:
export ADB_PATH=~/MyWorkspace/sdk/platform-tools
export PATH=$PATH:$ADB_PATH/adb
或者
export PATH=$PATH:~/MyWorkspace/sdk/platform-tools