-bash: android: command not found on Mac OSX

前端 未结 9 1869
陌清茗
陌清茗 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:33

    The android tool is located in the tools directory in your SDK. You need to add this to your PATH environment variable so that bash can recognize it.

    You can do this by adding it to your PATH in your .bash_profile file. This file should be located in your home directory. Create if it doesn't exist using vi .bash_profile and add the following line to it:

    export PATH=/platform-tools:/tools:$PATH
    

    where is to be replaced with the path to your SDK. For example: "/Users/me/android-sdk-mac_86/platform-tools"

提交回复
热议问题