0

I am trying to run a phonegap app on my Ubuntu machine.

I a getting the error related to the path for the ANDROID_HOME.

This is what I have in my bash_profile

export ANDROID_HOME=/home/suraj/Android/Sdk
PATH=$PATH:$ANDROID_HOME/home/suraj/Android/Sdk/tools
PATH=$PATH:$ANDROID_HOME/home/suraj/Android/Sdk/platform-tools

After putting this I am doing source ~/.bashrc to restart.

What is wrong here?

Suraj Shukla
  • 187
  • 5
  • 16

2 Answers2

0

I do not see any reference to the Android SDK in the output of "echo $PATH". Make sure your PATH variable contains the Android SDK.

Try to add the following lines to you .bashrc and then source it.

export ANDROID_HOME=/home/suraj/Android/Sdk
PATH=${PATH}:${ANDROID_HOME}
PATH=${PATH}:${ANDROID_HOME}/tools
PATH=${PATH}:${ANDROID_HOME}/platform-tools
Ika
  • 1,608
  • 14
  • 15
0

Path's are not set properly in your bashrc:

export PATH=$PATH:/home/suraj/Android/Sdk
export PATH=$PATH:/home/suraj/Android/Sdk/tools
export PATH=$PATH:/home/suraj/Android/Sdk/platform-tools
export PATH=$PATH:/home/suraj/Android/Sdk/Sdk/build-tools

source ~/.bashrc

echo $PATH
Maokei
  • 11
  • 2