title: Cordova fails to find ANDROID_HOME environment variable
body: <p>I looked all over Google and Stack Overflow for an answer, but I couldn't find the right one for me. I am learning Cordova and I'm trying to run the android emulator through terminal, and when I run 'sudo cordova emulate android' I get this message: </p>
  
  <p>''Failed to find 'ANDROID_HOME' environment variable. Try setting it manually.
  Detected 'avdmanager' command at /Users/username/Library/Android/sdk/cmdline-tools/latest/bin but no 'tools/bin' directory found near.
  Try reinstall Android SDK or update your PATH to include valid path to SDK/tools/bin directory.''</p>
  
  <p>But I set the variables in the ~./bash_profile file and it looks like this:</p>
  
  <pre><code>export ANDROID_HOME="/Users/username/Library/Android/sdk"
  
  export ANDROID_SDK_ROOT=$ANDROID_HOME
  
  export PATH=${PATH}:$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools
  
  export PATH=${PATH}:$ANDROID_HOME/tools/bin
  
  export PATH="$PATH:$ANDROID_HOME/build-tools/30.0.0-rc2"
  </code></pre>
  
  <p>I am using a MacOS Mojave, does anyone know what the issue is? 
  Thanks in advance</p>