title: How to solve ANDROID_SDK_ROOT=undefined (recommended setting) and ANDROID_HOME=undefined (DEPRECATED)
body: <p>Can someone show how to solve this issue associated with</p>
  <p>ionic cordova build android</p>
  <p>I have tried suggestions provided in this <a href="https://stackoverflow.com/questions/61477221/android-sdk-root-undefined-recommended-setting-while-building-ionic-app-using">link</a> but the issue remain as it is.</p>
  <blockquote>
  <p>cordova.cmd build android
  Checking Java JDK and Android SDK versions
  ANDROID_SDK_ROOT=undefined (recommended setting)
  ANDROID_HOME=undefined (DEPRECATED)
  Failed to find 'JAVA_HOME' environment variable. Try setting it manually.
  [ERROR] An error occurred while running subprocess cordova.</p>
  </blockquote>
  <pre><code>    cordova.cmd build android exited with exit code 1.
  
      Re-running this command with the --verbose flag may provide more information.
  </code></pre>