[Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually : <p>Im using Cordova in Linux mint 17 </p>

<p>I installed android sdk , cordova , android studio , nodejs 4 </p>

<p>problem is here
when i wanna build app in codova and run this on terminal :</p>

<p>sudo cordova build android</p>

<p>it shows </p>

<pre><code>Running command: /home/tnt/hello12/platforms/android/cordova/build 
[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.]
ERROR building one of the platforms: Error: /home/tnt/hello12/platforms/android/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: /home/tnt/hello12/platforms/android/cordova/build: Command failed with exit code 2
</code></pre>

<p>I put this code </p>

<pre><code> export HOME="/home/tnt"
    export ANDROID_HOME="$HOME/android/sdk/tools"
    export ANDROID_PLATFORM_TOOLS="$HOME/android/sdk/platform-tools"
    export PATH="$ANDROID_HOME:$ANDROID_PLATFORM_TOOLS:$PATH"
    export JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64"
    export ANT_HOME="/usr/share/ant"
    export PATH="$ANT_HOME/bin:$PATH"
    export ANDROID_HOME="/home/tnt/android/sdk/tools"
</code></pre>

<p>on  my </p>

<pre><code>/home/tnt/.bash_profile  
/home/tnt/.bashrc
/home/tnt/.profile  
/root/.bash_profile  
/root/.bashrc
/root/.profile 
</code></pre>

<p>but it wont works</p>
