You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getting UnhandledPromiseRejectionWarning: CordovaError: Requirements check failed for JDK 1.8 or greater
openjdk
brew tap brew tap AdoptOpenJDK/openjdk
brew install adoptopenjdk-openjdk11
fix the JAVA_HOME envvar
getting UnhandledPromiseRejectionWarning: CordovaError: Requirements check failed for JDK 1.8 or greater
i know this is not brew cask, it's a third party brew tap, but as we speak the guys at adoptopenjdk are working on pull request to official brew cask for openjdk
Investigation
As far as I discovered file check_reqs.js is responsible, it has problem recognising java10 and java11 because javac -version outputs to stdout instead of stderr. Also the regex.
The text was updated successfully, but these errors were encountered:
@odrzutowiec The Problem with check_reqs.js has already been fixed in #446 but the fix has not been released yet.
However, as @dpogue said: The Android tools require Java 8 (exactly). You can make it work with newer versions in some scenarios but it's generally not worth the trouble.
You can try to verify this using cordova@nightly and cordova-android@nightly. You then should get the message Requirements check failed for JDK 1.8.
Issue description
cordova run android --emulator
is not working on java installed via brew (both oracle and openjdk versions).Reproduction
oracle
UnhandledPromiseRejectionWarning: CordovaError: Requirements check failed for JDK 1.8 or greater
openjdk
UnhandledPromiseRejectionWarning: CordovaError: Requirements check failed for JDK 1.8 or greater
Investigation
As far as I discovered file check_reqs.js is responsible, it has problem recognising java10 and java11 because javac -version outputs to stdout instead of stderr. Also the regex.
The text was updated successfully, but these errors were encountered: