Problems with environment variables


#1

Hello guys, I have big problem with environment variables on Linux (Xubuntu 14.04), especially in time to do the build. I’ve done several searches and tried several ways.

I have the following Setup.

sudo nano ~/.bashrc

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export ANDROID_HOME=/home/jaime/Android/Sdk
export PATH=${PATH}:$ANDROID_HOME/tools
export PATH=${PATH}:$ANDROID_HOME/platform-tools
export PATH=${PATH}:$ANDROID_HOME/build-tools

and always displays the following message:

Error: Failed to find ‘ANDROID_HOME’ environment variable. Try setting setting it manually.
Failed to find ‘android’ command in your ‘PATH’. Try update your ‘PATH’ to include path to valid SDK directory.