title: Failed to find 'JAVA_HOME' environment variable. Try setting it manually
body: <p>I'm trying to run a sample app on my android device with the following command :</p>
  
  <pre><code>sudo ionic cordova run android --device
  </code></pre>
  
  <p>I'm getting this error : </p>
  
  <pre><code>Failed to find 'JAVA_HOME' environment variable. Try setting it manually.
  [ERROR] An error occurred while running subprocess cordova.
  
          cordova build android --device exited with exit code 1.
  
          Re-running this command with the --verbose flag may provide more information.
  
  </code></pre>
  
  <p>I already set the JAVA_HOME environment variable but that doesn't work .</p>
  
  <pre><code>~/Ionic/helloWorld$ echo $JAVA_HOME 
  /usr/lib/jvm/java-12-openjdk-amd64
  </code></pre>
  
  <p>Any recommendations ?</p>