-bash: android: command not found on Mac OSX

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

    Problem Solved For Android Studio Users:

    I am using Mac OS X Elcapitan version 10.11.X.

    Under my home directory I found .bash_profile.save file. I opened that file using sublime (you can use any other editor). Then I added this line

    export PATH=${PATH}:/Users/UserName/Library/Android/sdk/platform-tools:/Users/UserName/Library/Android/sdk/tools
    

    Replace "UserName" with your UserName.

    open terminal then run

     source ~/.bash_profile 
    

    here you go.

提交回复
热议问题