Trying to add adb to PATH variable OSX

前端 未结 14 1386
遇见更好的自我
遇见更好的自我 2020-11-28 18:04

I am trying to develop for android and I want to add the adb to my PATH so that I can launch it really easily. I have added directories before by f

14条回答
  •  情话喂你
    2020-11-28 18:34

    Android Studio v1.2 installs the adb tool in this path:

    ~/Library/Android/sdk/platform-tools/adb
    

    So it goes like this:

    1. Run Terminal
    2. run adb version and expect an error output
    3. touch ~/.bash_profile
    4. open ~/.bash_profile
    5. add the above path before the 'closing' :$PATH
    6. source ~/.bash_profile
    7. run adb version and expect an output

    Good luck!

提交回复
热议问题