-bash: android: command not found on Mac OSX

前端 未结 9 1860
陌清茗
陌清茗 2020-12-12 13:38

I\'ve been diving into Android development for a while, and now I want to use some project (helpshift) in my app. On the website they have some example apps in which the rea

9条回答
  •  温柔的废话
    2020-12-12 14:44

    Update the path.

    Open the Terminal program from Spotlight. Run the following command:

    touch ~/.bash_profile; open ~/.bash_profile
    

    Then save following code

    export PATH=${PATH}:/android-sdk-macosx/platform-tools:/Development/android-sdk-macosx/tools
    

    For my case, path is

    export PATH=/Users//Development/android-sdk-macosx/platform-tools:/Users//Development/android-sdk-macosx/tools:$PATH 
    

    Save the file and quit the text editor. Execute your .bash_profile to update your PATH:

    source ~/.bash_profile
    

    Then run adb.

提交回复
热议问题