[Firebase Mobile] Error while generating build Android

Forge Component
(22)
Published on 26 May by Patrícia Glória Ferreira
22 votes
Published on 26 May by Patrícia Glória Ferreira

I am getting an error while generating an android build on OS-11

Here's my Resource added:


Any help Much Appreciated.

Thanks

Hi Assif,


It seems to be a problem with the Firebase configuration file. 

In order to understand your issue, can you please share:

  1. the app identifier 
  2. the contents of google-services.zip


Best regards,

David

Hi David Sousa,

Thanks for the Instant Reply.

App Identifier: com.outsystemscloud.assif.FirebaseMobileSample

PFA google-services.zip



Note: I am using OS-11

Thanks


Hi Assif,


From what I understood, you used the Firebase Mobile Sample application and replaced the app identifier and the google-services.zip folder and path. Am I correct?

I did those same steps and the Android app generated successfully.

I'm using OS version 11.0.109.0


Best regards,

David

yes, I did the same steps.

But now for test, I have created a new Project in Outsystems & Firebase also.

But this time too I got the issue.


Any Idea ?

Assif,

Can you generate an Android build of the Firebase Mobile Sample without any changes? (just as downloaded from the Forge).

Regards,

David

I Perform all below:

1- Installed FirebaseMobileSample newly & build APK directly without any Publish.

2- Installed FirebaseMobileSample newly & Refreshed FirebaseMobile,FirebaseMiddleWare &  FirebaseMobileSample.

But Still Same Error. 


Hi David,

I tried a simple test for same on Outsystem-10 & it works perfectly :)

It seems some issue with the OS-11 for the component.

Perhaps Thanks for the Kind Assist.

Cheers,

Assif

I am getting the same error on 11.x

Thanks, Norman :)

Just an addition to your reply: if you are using your personal environment then you'll not be able to see/change your MABS version, for Outsystems forces all the personal environments to use the latest MABS version.


  • MABS 5.0 uses the Android API level 28, so you will be able to continue submitting your Android apps to Google Play, in line with the recent Google announcement.

  • MABS 5.0 uses Cordova Android engine 8.0.0 for Android apps. It is highly recommended that you revise your plugins to be compatible with this version.

  • MABS 5.0 now uses version 28 of Android support libraries.

  • With this release, we have dropped support for Android 4.4.


Ref Link :

https://success.outsystems.com/Support/Release_Notes/Mobile_Apps_Build_Service_Versions

https://success.outsystems.com/Support/Release_Notes/Mobile_Apps_Build_Service#MABS_Version_5.0


Personal Environment Users Stuck With these Now... 

@David Can you try to update the Plugin to meet the MABS 5.0 Standards.

- Assif

Solution

Hi Assif,


A new version of the plugin (1.0.3) is now available in the Forge. This version is now compatible with the beta version of MABS.

Please check below the screenshot of the Firebase Mobile Sample app generated with the MABS 5.

Best regards,

David

Solution

David Sousa wrote:

Hi Assif,


A new version of the plugin (1.0.3) is now available in the Forge. This version is now compatible with the beta version of MABS.

Please check below the screenshot of the Firebase Mobile Sample app generated with the MABS 5.

Best regards,

David


Thanks David Sousa

Same error here, i have done like show in Video tutorial.

Im using Outsystems v11

Hi David,


After updating firebase mobile plugin to the latest version, i got another issue on outsystems 10.

Hi,

I got same error on OS 11.0.520.0, 

I also try to install the new Firebase Mobile Sample 1.0.3 but still can't generate it. still get ENOENT erorr, 

Can please help ? 

Note: this was working fine (OS10) before we upgrade to OS 11,

We currently have the same problem. On iOS, the app works fine but the Android app keeps throwing errors.

We've tried both MABS 4.2 as 5.0, but the results are the same.


The build log (attached) suggest that the the file(s) could not be located for the android build in /assets/www. Maybe something changed in outsystems, moving from os10 to os11?

Márcio Rodrigues

From what I've seen in the other support thread you started, your target directory isn't well configured. As Camila said in the last comment, the target directory must be:

  • firebase. + appId

In your case, you configured it as:

  • Firebase. + appId

Abdul Roqib and ari auditianto

In order to help you troubleshoot your issues can you please attach your build logs, a screenshot of your app's resources folder where the Firebase configuration files are and the actual zip folder with the configuration files?


Timothy de Vries

From your build log it appears that you don't have this plugin referenced in your mobile app.

This component references this repository which isn't present in your logs.


David Sousa wrote:

Márcio Rodrigues

From what I've seen in the other support thread you started, your target directory isn't well configured. As Camila said in the last comment, the target directory must be:

  • firebase. + appId

In your case, you configured it as:

  • Firebase. + appId

Abdul Roqib and ari auditianto

In order to help you troubleshoot your issues can you please attach your build logs, a screenshot of your app's resources folder where the Firebase configuration files are and the actual zip folder with the configuration files?


Timothy de Vries

From your build log it appears that you don't have this plugin referenced in your mobile app.

This component references this repository which isn't present in your logs.



It's working now, previously my target directory is not well configured, 

thanks David

Hi David/Asif

Package name in JSON file and the APP identifers are not same.

Is this the reason I am getting error while genearating the app for Android.

I corrected the resource files as both of you mentioned, But I am getting below error,

There is no luck even after changing the version in extensibility configuration of FIREBASE MOBILE to 1.9

Hello Irfan,
Indeed the package name in JSON file should be the same as what you are defining while generating the build.
"package_name" for Android & "bundle_id" for iOS should be the same as what you define while build.

Let m specify with a layman approach:

1- Keep both package-name of Android & bundle_id for iOS same while build, In-Service studio it is term as AppIdentifier.

2- On the Firebase console; while you create the applications you have to add the same AppIdentifier...



So when you download the JSON from Firebase ... you get the right JSON with package name i.e AppIdentifier you define..

Now you can update the same in the firebase console first & then download the JSON & use it accordingly in your project.

3-The most important we also refer to this AppIdentifier while we set the TargetDire for a Resource file for the same.

Would recommend you to peacefully follow & g-through the below good source by David :

https://www.outsystems.com/forums/discussion/44231/push-notification-configuration-guide/

And of course a very helpful video by Jay
https://www.youtube.com/watch?v=ygbu3AITS4k

If in case this you are still stuck. reach me out personally .. will connect & guide you :)


Hope it helps,
Assif

 


Thank you very much Assif.

Now I can able to generate the app successfully,  But still I can see the number of users is zero in the fire base console.

Good to know Irfan,

Make sure you reinstall old build & install the new generated one... &then check.

The above post helped a lot and it resolved my issue, I can able to see the users now in firebase.

Thanks Assif .

Irfan wrote:

The above post helped a lot and it resolved my issue, I can able to see the users now in firebase.

Thanks Assif .

 

 Cool :)

Hi Assif,

can you please help me to implement Custom log Events and User Properties in my mobile application using Firebase ?

Thank you.

Hi Irfan 

Since this relates to a separate topic, next time my suggestion is to create a separate post so that we don't pollute this one and your question is easy to find by other community members.

Now, answering your questions. To implement a custom log event you just need to use the action LogEvent on the FirebaseMobile module.

For user properties is the SetUserProperty action.

Also, I suggest you to take a look at the component's sample here.


If you have any additional question let me know

Hi Team,

I got the below code to implement the custom user property from the below link.

mFirebaseAnalytics.setUserProperty("favorite_food", mFavoriteFood);

https://firebase.google.com/docs/analytics/user-properties?platform=android#java


Where should I write that code in my mobile app ?


Thank you.

https://www.outsystems.com/forums/discussion/64689/firebase-custom-event-creation-and-user-properties/#Post254486

Hi Team,

I created the new post on the above link for my question.


Thank you for all your help.