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)
ANDROID_HOME=undefined\Android\sdk (DEPRECATED)
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…
v17.1.0
NodeJS is correctly installed.
Checking Cordova installation and version…
10.0.0 (cordova-lib@10.1.0)
Cordova is correctly installed.
Checking for Android Studio installation…
Android Studio is correctly installed.
Checking Java SE JDK installation and version…
javac 11.0.11
Java SE JDK is correctly installed.
Checking Gradle installation and version…
Gradle 7.3
Build time: 2021-11-09 20:40:36 UTC
Revision: 96754b8c44399658178a768ac764d727c2addb37
Kotlin: 1.5.31
Groovy: 3.0.9
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!