更新时间:2023-12-02 23:05:10
sdk
sdk
大多数情况下,您可以看到那里的位置
You can see the location there – most of the time it is:
/Users/<name>/Library/Android/sdk
打开您的终端,通过键入以下内容来在nano中编辑您的~/.bash_profile
文件:
Open your Terminal edit your ~/.bash_profile
file in nano by typing:
nano ~/.bash_profile
如果您使用Zsh,请改为编辑~/.zshrc
.
If you use Zsh, edit ~/.zshrc
instead.
转到文件末尾,然后将目录路径添加到您的$PATH
:
Go to the end of the file and add the directory path to your $PATH
:
export PATH="${HOME}/Library/Android/sdk/tools:${HOME}/Library/Android/sdk/platform-tools:${PATH}"
Ctrl+X
adb
)内的任何文件或二进制文件的名称,并验证其是否已打开/执行
Ctrl+X
adb
) and verify it is opened/executed