On a mobile project I have android platform added and working all the way through the play store, except I cannot build from within Wappler (builds from android studio work.)
Error received on build:
Building your Cordova Project for android ...
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=/Users/pauka/Library/Android/sdk (recommended setting)
ANDROID_HOME=/Users/pauka/Library/Android/sdk (DEPRECATED)
Using Android SDK: /Users/pauka/Library/Android/sdk
Subproject Path: CordovaLib
Subproject Path: app
ERROR: JAVA_HOME is set to an invalid directory: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
But if I go into terminal in wappler, env shows this for JAVA_HOME, which is a valid directory.
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
so where do I go to get JAVA_HOME fixed for Wappler?