Outystems | Android | Generate build issue

Hi Folks,
Greetings!

I am getting following error when I am generating Android build from Service Studio

"

The following errors have occurred:• In Android on 2019-07-15 at 17:52:15 - 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.

"

I have made multiple Android builds before but didn't faced this issue.

Kindly provide the solution, your help is appreciable.

Thanks

Hello Meer,

Have you added any new plugin in between builds?

Cheers!

Armando Gomes wrote:

Hello Meer,

Have you added any new plugin in between builds?

Cheers!


No, I did not added any new plugin. Today I just open application and try to making build so getting above error message. 

Meer Imtiyaz wrote:

Armando Gomes wrote:

Hello Meer,

Have you added any new plugin in between builds?

Cheers!


No, I did not added any new plugin. Today I just open application and try to making build so getting above error message. 

We have changed Service studio environment path, but other applications are working fine.


Can you share the build log?

Armando Gomes wrote:

Can you share the build log?



1. Error generating RECOGNITION (Android): 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. Download the full log in the Native Platforms tab at dev-unity.priceright.app/ServiceCenter/Application_Edit.aspx?ApplicationId=126


2. 

Invalid call of the 'CallbackSpinnerPopupOnOkEvent' client action of the 'MainFlow.HomeScreen' since the latter is not currently active. This is likely due to a platform's client action being used as an event handler or in a setTimeout function. Consider removing this call by using the 'On Destroy' event of the screen/block or moving your logic to a global client action.
Environment InformationeSpaceVer: 0 (Id=41945, PubId=0, CompiledWith=11.0.108.0)
RequestUrl: https://dev-unity.priceright.app/RECOGNITION/moduleservices/log?clientTimeInMillis=1563189436462 (Method: POST)
AppDomain: /LM/W3SVC/1/ROOT/RECOGNITION-291-132076625246124200
FilePath: d:\Outsystems\Platform Server\running\RECOGNITION.994696033\
ClientIp: 10.11.225.52 X-Forwarded-For: 14.143.136.114
Locale: en-US
DateFormat: yyyy-MM-dd
PID: 8892 ('w3wp', Started='7/12/2019 1:49:16 PM', Priv=1696Mb, Virt=2110735Mb)
TID: 229
Thread Name:
.NET: 4.0.30319.42000
Client-Side Log
Stack:ControllerDisposedException: Invalid call of the 'CallbackSpinnerPopupOnOkEvent' client action of the 'MainFlow.HomeScreen' since the latter is not currently active. This is likely due to a platform's client action being used as an event handler or in a setTimeout function. Consider removing this call by using the 'On Destroy' event of the screen/block or moving your logic to a global client action.
    at Controller.t.ensureControllerAlive (https://dev-unity.priceright.app/RECOGNITION/scripts/OutSystems.js?rFilfaE2IH4kYGVFac7qgA:10:11870)
    at Controller._callbackSpinnerPopupOnOkEvent$Action (https://dev-unity.priceright.app/RECOGNITION/scripts/RECOGNITION.MainFlow.HomeScreen.mvc.js?fn_3sGJFig49YYKC9NvT7A:2901:12)
    at Controller.e.executeActionInsideJSNode (https://dev-unity.priceright.app/RECOGNITION/scripts/OutSystems.js?rFilfaE2IH4kYGVFac7qgA:10:4292)
    at Controller.t.executeActionInsideJSNode (https://dev-unity.priceright.app/RECOGNITION/scripts/OutSystems.js?rFilfaE2IH4kYGVFac7qgA:10:11664)
    at Object.callbackSpinnerPopupOnOkEvent$Action [as CallbackSpinnerPopupOnOkEvent] (https://dev-unity.priceright.app/RECOGNITION/scripts/RECOGNITION.MainFlow.HomeScreen.mvc.js?fn_3sGJFig49YYKC9NvT7A:2563:19)
    at https://dev-unity.priceright.app/RECOGNITION/scripts/RECOGNITION.MainFlow.HomeScreen.mvc.js?fn_3sGJFig49YYKC9NvT7A:4543:34


3. 

[ErrorScreen] Cannot read property 'previousScope' of undefined
Environment InformationeSpaceVer: 0 (Id=41945, PubId=0, CompiledWith=11.0.108.0)
RequestUrl: https://dev-unity.priceright.app/RECOGNITION/moduleservices/log?clientTimeInMillis=1563189446956 (Method: POST)
AppDomain: /LM/W3SVC/1/ROOT/RECOGNITION-291-132076625246124200
FilePath: d:\Outsystems\Platform Server\running\RECOGNITION.994696033\
ClientIp: 10.11.225.52 X-Forwarded-For: 14.143.136.114
Locale: en-US
DateFormat: yyyy-MM-dd
PID: 8892 ('w3wp', Started='7/12/2019 1:49:16 PM', Priv=1697Mb, Virt=2110735Mb)
TID: 177
Thread Name:
.NET: 4.0.30319.42000
Client-Side Log


The build log is retrieved from the Native Platforms tab in Service Center.

Meer Imtiyaz wrote:

Armando Gomes wrote:

Can you share the build log?



1. Error generating RECOGNITION (Android): 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. Download the full log in the Native Platforms tab at dev-unity.priceright.app/ServiceCenter/Application_Edit.aspx?ApplicationId=126


2. 

Invalid call of the 'CallbackSpinnerPopupOnOkEvent' client action of the 'MainFlow.HomeScreen' since the latter is not currently active. This is likely due to a platform's client action being used as an event handler or in a setTimeout function. Consider removing this call by using the 'On Destroy' event of the screen/block or moving your logic to a global client action.
Environment InformationeSpaceVer: 0 (Id=41945, PubId=0, CompiledWith=11.0.108.0)
RequestUrl: https://dev-unity.priceright.app/RECOGNITION/moduleservices/log?clientTimeInMillis=1563189436462 (Method: POST)
AppDomain: /LM/W3SVC/1/ROOT/RECOGNITION-291-132076625246124200
FilePath: d:\Outsystems\Platform Server\running\RECOGNITION.994696033\
ClientIp: 10.11.225.52 X-Forwarded-For: 14.143.136.114
Locale: en-US
DateFormat: yyyy-MM-dd
PID: 8892 ('w3wp', Started='7/12/2019 1:49:16 PM', Priv=1696Mb, Virt=2110735Mb)
TID: 229
Thread Name:
.NET: 4.0.30319.42000
Client-Side Log
Stack:ControllerDisposedException: Invalid call of the 'CallbackSpinnerPopupOnOkEvent' client action of the 'MainFlow.HomeScreen' since the latter is not currently active. This is likely due to a platform's client action being used as an event handler or in a setTimeout function. Consider removing this call by using the 'On Destroy' event of the screen/block or moving your logic to a global client action.
    at Controller.t.ensureControllerAlive (https://dev-unity.priceright.app/RECOGNITION/scripts/OutSystems.js?rFilfaE2IH4kYGVFac7qgA:10:11870)
    at Controller._callbackSpinnerPopupOnOkEvent$Action (https://dev-unity.priceright.app/RECOGNITION/scripts/RECOGNITION.MainFlow.HomeScreen.mvc.js?fn_3sGJFig49YYKC9NvT7A:2901:12)
    at Controller.e.executeActionInsideJSNode (https://dev-unity.priceright.app/RECOGNITION/scripts/OutSystems.js?rFilfaE2IH4kYGVFac7qgA:10:4292)
    at Controller.t.executeActionInsideJSNode (https://dev-unity.priceright.app/RECOGNITION/scripts/OutSystems.js?rFilfaE2IH4kYGVFac7qgA:10:11664)
    at Object.callbackSpinnerPopupOnOkEvent$Action [as CallbackSpinnerPopupOnOkEvent] (https://dev-unity.priceright.app/RECOGNITION/scripts/RECOGNITION.MainFlow.HomeScreen.mvc.js?fn_3sGJFig49YYKC9NvT7A:2563:19)
    at https://dev-unity.priceright.app/RECOGNITION/scripts/RECOGNITION.MainFlow.HomeScreen.mvc.js?fn_3sGJFig49YYKC9NvT7A:4543:34


3. 

[ErrorScreen] Cannot read property 'previousScope' of undefined
Environment InformationeSpaceVer: 0 (Id=41945, PubId=0, CompiledWith=11.0.108.0)
RequestUrl: https://dev-unity.priceright.app/RECOGNITION/moduleservices/log?clientTimeInMillis=1563189446956 (Method: POST)
AppDomain: /LM/W3SVC/1/ROOT/RECOGNITION-291-132076625246124200
FilePath: d:\Outsystems\Platform Server\running\RECOGNITION.994696033\
ClientIp: 10.11.225.52 X-Forwarded-For: 14.143.136.114
Locale: en-US
DateFormat: yyyy-MM-dd
PID: 8892 ('w3wp', Started='7/12/2019 1:49:16 PM', Priv=1697Mb, Virt=2110735Mb)
TID: 177
Thread Name:
.NET: 4.0.30319.42000
Client-Side Log


4. 



Invalid call of the 'TriggerOnUpgradeProgress' client action of the 'Common.Splash' since the latter is not currently active. This is likely due to a platform's client action being used as an event handler or in a setTimeout function. Consider removing this call by using the 'On Destroy' event of the screen/block or moving your logic to a global client action.


Environment InformationeSpaceVer: 0 (Id=41945, PubId=0, CompiledWith=11.0.108.0)
RequestUrl: https://dev-unity.priceright.app/RECOGNITION/moduleservices/log?clientTimeInMillis=1563188969673 (Method: POST)
AppDomain: /LM/W3SVC/1/ROOT/RECOGNITION-291-132076625246124200
FilePath: d:\Outsystems\Platform Server\running\RECOGNITION.994696033\
ClientIp: 10.11.225.52 X-Forwarded-For: 14.143.136.114
Locale: en-US
DateFormat: yyyy-MM-dd
PID: 8892 ('w3wp', Started='7/12/2019 1:49:16 PM', Priv=1677Mb, Virt=2110719Mb)
TID: 146
Thread Name:
.NET: 4.0.30319.42000
Client-Side Log
Stack:
ControllerDisposedException: Invalid call of the 'TriggerOnUpgradeProgress' client action of the 'Common.Splash' since the latter is not currently active. This is likely due to a platform's client action being used as an event handler or in a setTimeout function. Consider removing this call by using the 'On Destroy' event of the screen/block or moving your logic to a global client action.
    at Controller.t.ensureControllerAlive (https://dev-unity.priceright.app/RECOGNITION/scripts/OutSystems.js?rFilfaE2IH4kYGVFac7qgA:10:11870)
    at Controller._triggerOnUpgradeProgress$Action (https://dev-unity.priceright.app/RECOGNITION/scripts/OutSystemsUIMobile.Private.ApplicationLoadEvents.mvc.js?6OHQqJh9BaVfAIOwy_shGg:171:12)
    at Controller.e.executeActionInsideJSNode (https://dev-unity.priceright.app/RECOGNITION/scripts/OutSystems.js?rFilfaE2IH4kYGVFac7qgA:10:4292)
    at Controller.t.executeActionInsideJSNode (https://dev-unity.priceright.app/RECOGNITION/scripts/OutSystems.js?rFilfaE2IH4kYGVFac7qgA:10:11664)
    at Object.triggerOnUpgradeProgress$Action [as TriggerOnUpgradeProgress] (https://dev-unity.priceright.app/RECOGNITION/scripts/OutSystemsUIMobile.Private.ApplicationLoadEvents.mvc.js?6OHQqJh9BaVfAIOwy_shGg:146:19)
    at progressCallback (https://dev-unity.priceright.app/RECOGNITION/scripts/OutSystemsUIMobile.Private.ApplicationLoadEvents.mvc.js?6OHQqJh9BaVfAIOwy_shGg:358:18)
    at https://dev-unity.priceright.app/RECOGNITION/scripts/OutSystemsUIMobile.Private.ApplicationLoadEvents.mvc.js?6OHQqJh9BaVfAIOwy_shGg:374:13



Armando Gomes wrote:

The build log is retrieved from the Native Platforms tab in Service Center.


Yes, As I opening the Native Platforms tab there showing error message.


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.


Armando Gomes wrote:

Meer,

The build log is located here:


Also documented here: https://success.outsystems.com/Documentation/11/Delivering_Mobile_Apps/Generate_and_Distribute_Your_Mobile_App#download-mobile-app-build-logs

Please see attachment of build log file 


I would suggest for you to open a support case with OutSystems. Without looking at your code, it seems that MABS is not generating/maintaining all the required files for successful execution. But you had previous build, so I would suggest for you to "revert" to that previous build and try to generate it.

Have you upgraded any referenced component?

Armando Gomes wrote:

I would suggest for you to open a support case with OutSystems. Without looking at your code, it seems that MABS is not generating/maintaining all the required files for successful execution. But you had previous build, so I would suggest for you to "revert" to that previous build and try to generate it.

Have you upgraded any referenced component?

Ok, I will revert my previous build and then try to generate build if faced same issue then I will post query on Outsystems Support.

Thanks for you good support.


I have this issue as well. Did you find resolution?

Hi guys, any solution to this problem?, I added the plugin of OneSignal and this error started to appear!!

Hi Folks,

Meer Imtiyaz can you check the MABS Version you are using & also check whether the Plugins you have used supports the MABS Version you using to build the application.

I am very much sure you are using a plugin which doesn't support the MABS version of your's.

assif_tiger wrote:

Hi Folks,

Meer Imtiyaz can you check the MABS Version you are using & also check whether the Plugins you have used supports the MABS Version you using to build the application.

I am very much sure you are using a plugin which doesn't support the MABS version of your's.

Hi Assif,
Thanks for your post.

My issue was resolved that time only.

Actually I have created one ticket with support team they have called me immediately and asked some questions then after two days I have try to make build so it made successfully without any error, nothing I have changed on my side.





Murilo Antonio wrote:

Hi guys, any solution to this problem?, I added the plugin of OneSignal and this error started to appear!!

Hi,

We had this same in one of our environments. Difference between environments was OneSignal plugin version, which in failing env was v0.2 while v0.4 in others. Updating the plugin fixed this issue.

br,

-Mikko(N)