Trying to add adb to PATH variable OSX

前端 未结 14 1335
遇见更好的自我
遇见更好的自我 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:23

    Why are you trying to run "./adb"? That skips the path variable entirely and only looks for "adb" in the current directory. Try running "adb" instead.

    Edit: your path looks wrong. You say you get

    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Libs/android-sdk-mac_x86/tools:/Libs/android-sdk-mac_x86/platform-tools
    

    You're missing the /Users/simon part.

    Also note that if you have both .profile and .bash_profile files, only the latter gets executed.

提交回复
热议问题