title: Cordova: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable
body: <p>I am having problem to build android with Cordova, when I execute <code>cordova build android</code>, I receive this error: </p>
  
  <pre><code>Error: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable.
  </code></pre>
  
  <p>I have do this to fix it:</p>
  
  <pre><code>sudo nano  ~/.bash_profile
  </code></pre>
  
  <p>and add this line:</p>
  
  <pre><code>export PATH=${PATH}:/Users/myname/Library/Android/sdk/platform-tools:/Users/myname/Library/Android/sdk/tools
  </code></pre>
  
  <p>then this:</p>
  
  <pre><code>source ~/.bash_profile
  </code></pre>
  
  <p>but I get again that error when I build, how can I fix it?</p>
  
  <p>UPDATE:</p>
  
  <p>This is the line I Added in the bash:</p>
  
  <pre><code>export PATH=${PATH}:/Users/myname/Library/Android/sdk/platform-tools:/Users/myname/Library/Android/sdk/tools
  export ANDROID_HOME=/Users/myname/Library/Android/sdk
  </code></pre>