title: Error: Requirements check failed for JDK 1.8 or greater on Ionic
body: <p>I have an Ionic app which started to fail when I run:</p>
  
  <pre><code>ionic cordova run android --consolelogs --device --livereload
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>ANDROID_HOME=/home/ivan/Android
  JAVA_HOME=/usr/lib/jvm/java-10-oracle/
  Error: Requirements check failed for JDK 1.8 or greater
  </code></pre>
  
  <p>My environment variables are:</p>
  
  <pre><code>echo $JAVA_HOME
  /usr/lib/jvm/java-10-oracle/
  
  echo $ANDROID_HOME
  /home/ivan/Android
  </code></pre>
  
  <p>My current versions:</p>
  
  <pre><code>java -version
  java version "10.0.2" 2018-07-17
  Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
  Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
  
  javac -version
  javac 10.0.2
  </code></pre>
  
  <p>Ionic info:</p>
  
  <pre><code>cli packages: (/usr/lib/node_modules)
  
      @ionic/cli-utils  : 1.19.2
      ionic (Ionic CLI) : 3.20.0
  
  global packages:
  
      cordova (Cordova CLI) : 7.0.1 
  
  local packages:
  
      @ionic/app-scripts : 3.1.10
      Cordova Platforms  : android 6.2.3
      Ionic Framework    : ionic-angular 3.9.2
  
  System:
  
      Android SDK Tools : 26.0.2
      Node              : v6.14.3
      npm               : 4.6.1 
      OS                : Linux 4.4
  
  Environment Variables:
  
      ANDROID_HOME : /home/ivan/Android
  
  Misc:
  
      backend : legacy
  </code></pre>
  
  <p>I don't know what's happening here. Any ideas?</p>
  
  <p>Thank's in advance!</p>