After spending the day setting up Mobile Projects in Ubuntu and passing all the System Checks, and being able to build the Project in Android Studio.
Wappler still gives me the following error which has had me going around in circles for hours…
As a side note it would be very useful if these paths themselves could be set in the Android configuration area for the Project. by the User… Just a thought, anyway below is what I am seeing.
Building your Cordova Project for android …
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined\Android\sdk (recommended setting)
Failed to find ‘JAVA_HOME’ environment variable. Try setting it manually.
Error building your Cordova Project for android!
Passed all checks:
Checking NodeJS installation and version…
NodeJS is correctly installed.
Checking Cordova installation and version…
Cordova is correctly installed.
Checking for Android Studio installation…
Android Studio is correctly installed.
Checking Java SE JDK installation and version…
Java SE JDK is correctly installed.
Checking Gradle installation and version…
Build time: 2021-11-09 20:40:36 UTC
Ant: Apache Ant™ version 1.10.11 compiled on July 10 2021
JVM: 11.0.11 (Ubuntu 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OS: Linux 5.11.0-40-generic amd64
Gradle could not detect version! (this makes no sense as the above output acknoldges the Gradle version)
Checking for Android SDK …
Android SDK is correctly installed.
System check successful!
Any advice appreciated, it is literally the last hurdle! As I said can build fine in Android Studio, had no problems in Windows. Just seems Linux fails to locate the environmental variables…? Android Studio is very certain that everything is in the correct location, as is the Wappler System Check, so what is going on? Input very grateful!