title: Error check ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables
body: <p>To generate apk  run </p>
  
  <pre> ionic cordova build android</pre>
  
  <p>after some process it generate error.</p>
  
  <p>I set user variables</p>
  
  <pre><code>ANDROID_HOME = C:\Users\Zohab Ud Din\AppData\Local\Android\Sdk\build-tools\29.0.1
  
  JAVA_HOME = C:\Program Files\Java\jdk-12.0.2
  
  PATH = ...;C:\Users\Zohab Ud Din\AppData\Local\Android\Sdk\platform-tools
  </code></pre>
  
  <p>and I didn't add anything in the system variable</p>
  
  <p>my error is</p>
  
  <pre><code>Checking Java JDK and Android SDK versions
  Requirements check failed for JDK 8 ('1.8.*')! Detected version: 12.0.2
  Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.
  ANDROID_SDK_ROOT=undefined (recommended setting)
  ANDROID_HOME=C:\Users\Zohab Ud Din\AppData\Local\Android\Sdk (DEPRECATED)
  [ERROR] An error occurred while running subprocess Cordova.
  
  
  
   cordova.cmd build android exited with exit code 1.
  
  Re-running this command with the --verbose flag may provide more information.
  </code></pre>