Android build error - Gradle does not exists

Hi,

I just want to ask what would be the problem/issue when I try to generate apk.

Please see this androidbuild log

[2020-02-24T03:35:43.236Z] [INFO] Start processing job request...
[2020-02-24T03:35:43.242Z] [INFO] Start generating application...
[2020-02-24T03:35:43.243Z] [INFO] Template version: 5.4.0
[2020-02-24T03:35:43.243Z] [INFO] Build features: cordovaNoFetch - true
[2020-02-24T03:35:43.243Z] [INFO] Build features: buildTimeout - 20
[2020-02-24T03:35:43.245Z] [INFO] Creating a temporary folder for the application...
[2020-02-24T03:35:43.246Z] [INFO] Creating the required directory structure for your cordova application...
[2020-02-24T03:35:49.571Z] [INFO] Getting application resources...
[2020-02-24T03:35:49.603Z] [INFO] Processing application resources...
[2020-02-24T03:35:50.394Z] [INFO] Generating application assets...
[2020-02-24T03:35:50.701Z] [INFO] Applying configurations in the config.xml file...
[2020-02-24T03:35:50.714Z] [INFO] Applying advanced configurations in the config.xml file...
[2020-02-24T03:35:50.716Z] [INFO] Applying custom application icons...
[2020-02-24T03:35:50.716Z] [INFO] Applying custom application splashscreens...
[2020-02-24T03:35:50.717Z] [INFO] Applying application preferences...
[2020-02-24T03:35:50.727Z] [INFO] Writing your cordova preferences...
[2020-02-24T03:35:50.727Z] [INFO] Applying application accessList...
[2020-02-24T03:35:50.728Z] [INFO] Adding target platform...
[2020-02-24T03:36:28.967Z] [INFO] Applying plugins in the config.xml file...
[2020-02-24T03:36:28.969Z] [INFO] Plugin Id: https://github.com/OutSystems/csZBar.git#v1.3.3.OS
[2020-02-24T03:36:28.970Z] [INFO] Plugin Action: add
[2020-02-24T03:36:32.273Z] [INFO] Plugin Id: https://github.com/timeseriesBH/cordova-plugin-buildinfo.git
[2020-02-24T03:36:32.273Z] [INFO] Plugin Action: add
[2020-02-24T03:36:34.853Z] [INFO] Plugin Id: https://github.com/apache/cordova-plugin-file.git#4.3.3
[2020-02-24T03:36:34.853Z] [INFO] Plugin Action: add
[2020-02-24T03:36:38.299Z] [INFO] Plugin Id: https://github.com/OutSystemsExperts/google-analytics-plugin.git#1.8.3.os
[2020-02-24T03:36:38.300Z] [INFO] Plugin Action: add
[2020-02-24T03:36:43.089Z] [INFO] Plugin Id: https://github.com/Rareloop/cordova-plugin-app-version#v1.0.0
[2020-02-24T03:36:43.089Z] [INFO] Plugin Action: add
[2020-02-24T03:36:45.140Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-geolocation.git#2.4.1
[2020-02-24T03:36:45.140Z] [INFO] Plugin Action: add
[2020-02-24T03:36:48.407Z] [INFO] Plugin Id: https://github.com/OutSystemsExperts/cordova-plugin-file-transfer.git#1.5.1.os
[2020-02-24T03:36:48.407Z] [INFO] Plugin Action: add
[2020-02-24T03:36:51.028Z] [INFO] Plugin Id: https://github.com/OutSystemsExperts/cordova-plugin-facebook4#OS.0.11.0
[2020-02-24T03:36:51.028Z] [INFO] Plugin Action: add
[2020-02-24T03:37:01.424Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-local-notifications.git#0.8.9-OS2
[2020-02-24T03:37:01.424Z] [INFO] Plugin Action: add
[2020-02-24T03:37:05.372Z] [INFO] Plugin Id: https://github.com/agmv/cordova-secure-device.git#1.0.4
[2020-02-24T03:37:05.372Z] [INFO] Plugin Action: add
[2020-02-24T03:37:07.502Z] [INFO] Plugin Id: https://github.com/apache/cordova-plugin-inappbrowser
[2020-02-24T03:37:07.503Z] [INFO] Plugin Action: add
[2020-02-24T03:37:10.420Z] [INFO] Plugin Id: https://github.com/OutSystems/OneSignal-Cordova-SDK.git#2.3.2-OS2
[2020-02-24T03:37:10.420Z] [INFO] Plugin Action: add
[2020-02-24T03:37:14.447Z] [INFO] Getting signing keys...
[2020-02-24T03:37:14.568Z] [INFO] Building application package...
[2020-02-24T03:37:22.552Z] [ERROR] No Gradle daemons are running.


To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.10.3/userguide/gradle_daemon.html.


Daemon will be stopped at the end of the build stopping after processing




> Configure project :app


WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.

It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html


Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.




FAILURE: Build failed with an exception.


* Where:

/tmp/build/source/platforms/android/cordova-android-support-gradle-release/MySMACv2-cordova-android-support-gradle-release.gradle' line: 11


* What went wrong:
A problem occurred evaluating script.

>
Could not read script '/opt/NativeBuilder/builds/153d62d1-0078-43e5-aaa1-1de15161c9e2/source/platforms/android/app/cordova-android-support-gradle-release/properties.gradle' as it does not exist.


* Try:

Run with --stacktrace
 option to get the stack trace. Run with --info or --debug option to get more log output. Run with
--scan to get full insights.

* Get more help at https://help.gradle.org


BUILD FAILED in 5s

Error: Unable to disable Gradle daemon

[2020-02-24T03:37:22.552Z] [ERROR] Build failed with the following error: Error generating application. This happened because script 'platforms/android/app/cordova-android-support-gradle-release/properties.gradle' was not found. Please check your script path and try again.
[2020-02-24T03:37:22.553Z] [INFO] Remove debug/release signing properties
[2020-02-24T03:37:22.553Z] [INFO] Zipping application source...
[2020-02-24T03:38:03.206Z] [INFO] Application was not successfully generated!
[2020-02-24T03:38:03.209Z] [INFO] Execution time: 140015ms


Thank you,

Hi Dan Cesar,

Can you please help to share few more details :

  • What is the OutSystems Version you are using.
  • What is the MABS version you are using 
  • What are the plugins you are using. 
  • Anything you added in Extensibility Configuration at Module level.

Thanks.

Hi,

I have the same issue. Does anyone have a solution for this?