[OneSignal Plugin] Android Build Error

Forge Component
(13)
Published on 18 Jan by OutSystems R&D
13 votes
Published on 18 Jan by OutSystems R&D

OneSignal Plugin Error when generating Android mobile app. Says "

The following errors have occurred:• In Android on 2019-05-17 at 08:43:25 - An unexpected error has occurred while packaging your application. Please try again. If the problem persists, contact OutSystems Support."



Progress bar gets to the end, then pauses, then throws that error.

-Installed OneSignal from forge

-Works on iOS build

-Android build fails


[2019-05-17T12:42:40.101Z] [INFO] Applying plugins in the config.xml file...

[2019-05-17T12:42:40.101Z] [INFO] Plugin Id: https://github.com/OutSystems/OneSignal-Cordova-SDK.git#2.4.5-OS

[2019-05-17T12:42:40.102Z] [INFO] Plugin Action: add

[2019-05-17T12:42:43.700Z] [INFO] Getting signing keys...

[2019-05-17T12:42:43.749Z] [INFO] Building application package...

[2019-05-17T12:42:50.793Z] [INFO] Checking application package...

[2019-05-17T12:42:50.793Z] [ERROR] Unable to locate the application package!

[2019-05-17T12:42:50.793Z] [ERROR] Unable to locate the application package!

[2019-05-17T12:42:50.794Z] [ERROR] Build failed with the following error: An unexpected error has occurred while packaging your application. Please try again. If the problem persists, contact OutSystems Support.

[2019-05-17T12:42:50.794Z] [INFO] Remove debug/release signing properties

[2019-05-17T12:42:50.794Z] [INFO] Zipping application source...

[2019-05-17T12:43:09.389Z] [INFO] Application was not successfully generated!

[2019-05-17T12:43:09.390Z] [INFO] Execution time: 191711ms

Adam Esterle wrote:

OneSignal Plugin Error when generating Android mobile app. Says "

The following errors have occurred:• In Android on 2019-05-17 at 08:43:25 - An unexpected error has occurred while packaging your application. Please try again. If the problem persists, contact OutSystems Support."



Progress bar gets to the end, then pauses, then throws that error.

-Installed OneSignal from forge

-Works on iOS build

-Android build fails


[2019-05-17T12:42:40.101Z] [INFO] Applying plugins in the config.xml file...

[2019-05-17T12:42:40.101Z] [INFO] Plugin Id: https://github.com/OutSystems/OneSignal-Cordova-SDK.git#2.4.5-OS

[2019-05-17T12:42:40.102Z] [INFO] Plugin Action: add

[2019-05-17T12:42:43.700Z] [INFO] Getting signing keys...

[2019-05-17T12:42:43.749Z] [INFO] Building application package...

[2019-05-17T12:42:50.793Z] [INFO] Checking application package...

[2019-05-17T12:42:50.793Z] [ERROR] Unable to locate the application package!

[2019-05-17T12:42:50.793Z] [ERROR] Unable to locate the application package!

[2019-05-17T12:42:50.794Z] [ERROR] Build failed with the following error: An unexpected error has occurred while packaging your application. Please try again. If the problem persists, contact OutSystems Support.

[2019-05-17T12:42:50.794Z] [INFO] Remove debug/release signing properties

[2019-05-17T12:42:50.794Z] [INFO] Zipping application source...

[2019-05-17T12:43:09.389Z] [INFO] Application was not successfully generated!

[2019-05-17T12:43:09.390Z] [INFO] Execution time: 191711ms


Hi Adam,

Please try cloning your application, and generate your android build again, this should work if your ios build generated successfully.


cheers,

Phiwo  

Hello, Adam,

I take it you are using version 3.0.0 of the OneSignal plugin, right?

Bear in mind that version is made for MABS 5 (currently in Beta), hence being marked as "Under Development". Unless you are using MABS 5 to generate your mobile app (by selecting it on Service Center, as described here), you will need to the latest stable version of the plugin.

Did this solve it for you?

Best regards,

Carlos

Carlos Simões wrote:

Hello, Adam,

I take it you are using version 3.0.0 of the OneSignal plugin, right?

Bear in mind that version is made for MABS 5 (currently in Beta), hence being marked as "Under Development". Unless you are using MABS 5 to generate your mobile app (by selecting it on Service Center, as described here), you will need to the latest stable version of the plugin.

Did this solve it for you?

Best regards,

Carlos

No, I was using 2.1.0 in a personal environment (which I think is on MABS 5)


Also, I cannot clone as of now because it froze my Mobile App generation and it has said "Preparing to generate Android Mobile App..." for over 30 minutes


Ok, you are definitely using MABS 5, which means you need version 3.0.0 (as stated here).

About the error: this can happen on rare occasions; the quick workaround is to trigger a generation request for another mobile app. This should either start or timeout the one that is currently stuck.

If you are not able to surpass it, we're going to need to have a closer look a it. Would you open a support case if comes to that, please?

Do let us know how things went. :)

Best regards,

Carlos

Carlos Simões wrote:

Ok, you are definitely using MABS 5, which means you need version 3.0.0 (as stated here).

About the error: this can happen on rare occasions; the quick workaround is to trigger a generation request for another mobile app. This should either start or timeout the one that is currently stuck.

If you are not able to surpass it, we're going to need to have a closer look a it. Would you open a support case if comes to that, please?

Do let us know how things went. :)

Best regards,

Carlos


Thank you for the response.

I downloaded 3.x for OneSignal

I tried another app, but that one was stuck hanging too. They have been hanging (including any timers that have triggered) for about 4 hours or so now. I opened a support ticket

https://www.outsystems.com/SupportPortal/CaseShow.aspx?CaseId=2164558