Build dev version in hope to get an apk

Hey guys, could anyone help?

I tried to npm run build-dev-cordova

I got this:

Build complete.

Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=C:\Users\codep\AppData\Local\Android\sdk (DEPRECATED)
Requirements check failed for JDK 8 (‘1.8.*’)! Detected version: 14.0.1
Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build-dev-cordova: cross-env TARGET=cordova cross-env NODE_ENV=development node ./build/build.js && cd cordova && cordova build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build-dev-cordova script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Hello!
Looking at the error it appears that you are missing Java JDK on your machine. Please download and install it from here: https://www.oracle.com/java/technologies/javase-jdk8-downloads.html

Yup. That was it. I had current version installed, which was 14, and cordova wants 8. :slight_smile:

1 Like