Issue: Problems with JDK10 - ionic


#1

Short description of the problem:
CordovaError: Requirements check failed for JDK 1.8 or greater

What behavior are you expecting?
APK Creation

ionic cordova run android

which gives me this error,

ANDROID_HOME=C:\Users\dell\AppData\Local\Android\Sdk
JAVA_HOME=C:\Program Files\Java\jdk-10.0.1
(node:2172) UnhandledPromiseRejectionWarning: CordovaError: Requirements check failed for JDK 1.8 or greater
Which version are you using?

ionic/app-scripts : 3.1.9
Cordova Platforms : android 7.0.0
Ionic Framework : ionic-angular 3.9.2
cordova (Cordova CLI) : 8.0.0

ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0

java -version
java version “10.0.1” 2018-04-17
Java™ SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot™ 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

Android SDK Tools : 26.1.1
Node : v8.11.1
npm : 5.6.0
OS : Windows 10

ANDROID_HOME : C:\Users\dell\AppData\Local\Android\Sdk

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)


#2

Downgraded the Java version to 1.8, and I can able to build the APK now. Just want to know, instead of downgrading to 1.8 is there any solution for this to work on java10??