Sure. It didn't go so well. But never mind. Only a small subset of our customers are using http instead of https. So I will instead help them to convert to https. So NO STRESS!!!
But for the record I can mention:
I use Mac and have installed JDK 8 and Node. I have also tried to update (EXPORT) the environment variable like this:
export JAVA_HOME='/usr/libexec/java_home -v 1.8'
I make this variabel permanent in the most used shells.
Then I exit all terminals and start the build script (in the same folder as build.bat)
I get:
Last login: Wed Jan 15 22:38:26 on ttys000
/Users/myuser/Desktop/TimeflexAppNo-4/platforms/android/cordova/build ; exit;
myuser@MacBookProCertholder ~ % /Users/myuser/Desktop/TimeflexAppNo-4/platforms/android/cordova/build ; exit;
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=/Users/myuser/Library/Android/sdk (DEPRECATED)
CordovaError: Requirements check failed for JDK 8 ('1.8.*')! Detected version: 13.0.1
Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.
at /Users/myuser/Desktop/TimeflexAppNo-4/platforms/android/cordova/lib/check_reqs.js:371:19
at _fulfilled (/Users/myuser/Desktop/TimeflexAppNo-4/node_modules/q/q.js:854:54)
at /Users/ofto/Desktop/TimeflexAppNo-4/node_modules/q/q.js:883:30
at Promise.promise.promiseDispatch (/Users/myuser/Desktop/TimeflexAppNo-4/node_modules/q/q.js:816:13)
at /Users/myuser/Desktop/TimeflexAppNo-4/node_modules/q/q.js:624:44
at runSingle (/Users/myuser/Desktop/TimeflexAppNo-4/node_modules/q/q.js:137:13)
at flush (/Users/myuser/Desktop/TimeflexAppNo-4/node_modules/q/q.js:125:13)
at processTicksAndRejections (internal/process/task_queues.js:76:11)
Conclusion: I am struggling to set environment variables in Mac. Or I am using the wrong script. Or maybe wrong shell.