Unhandled promise rejection (rejection id: 1)


#1

Hi,
I am getting following error while building ionic app for android

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError: Requirements check failed for JDK 1.8 or greater

but i have installed jdk

$ java --version
java 10.0.1 2018-04-17

please help to resolve this