Step 1.
打開終端機Step 2.
輸入以下指令
touch .bash_profile
open -e .bash_profile
此時會打開.bash_profile的文字檔
open -e .bash_profile
此時會打開.bash_profile的文字檔
Step3.
於.bash_profile的文檔中輸入檔案路徑(如果.bash_profile的文檔已有內容要以 ; 號區分)
export PATH=${PATH}:【你的SDK檔案路徑】
路徑範例:export PATH=$PATH:/Users/Mac/Desktop/CodeingAndroid/sdk/platform-tools/
輸入路徑後存檔
source ~/.bash_profile
export PATH=${PATH}:【你的SDK檔案路徑】
路徑範例:export PATH=$PATH:/Users/Mac/Desktop/CodeingAndroid/sdk/platform-tools/
輸入路徑後存檔
Step4.
輸入以下指令source ~/.bash_profile
Step5.
輸入adb 按下Enter
如果有adb指令就完成了
adb指令
沒有留言:
張貼留言