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
This is the issue because of you didn't give proper android sdk path variable in .bash_profile. for this you must follow the below steps.
1. Check android sdk path: for this you should open android studio->preferences and click on Android SDK in newly open window in that look for Android SDK location textfield in that you can find path of Android SDK. For me it shows like: /Users/. here is name of your home directory.
2. Open your terminal enter cd ~ command.
3. and enter vi .bash_profile.
4. In vi editor enter following
export ANDROID_HOME=/Users/Murali/Library/Android/sdk
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/platform-tools:$PATH
Save it by press esc button and enter :wq.
5. After this close your terminal and open it again.
6. To apply all your changes in .bash_profile enter following command
source .bash_profile.
7. Enter android command. Hope this now working fine :-)