[Firebase Mobile] Error while generating build Android

Forge Component
(18)
Published on 4 Nov by David Sousa
18 votes
Published on 4 Nov by David Sousa

Hey Guys,

I'm having the same error as assif_tiger was having the other day:
"the following errors have occurred:• In Android on 2019-06-24 at 13:26:23 - Error installing Cordova plugin: cordova-plugin-firebase': Error: ENOENT: no such file or directory, scandir '/opt/NativeBuilder/builds/cf6a93e2-6644-46e6-819a-043da400bbc3/source/platforms/android/assets/www/google-services."

Now here is the thing, the last time I successfully generated this build was on the 10th of July (with firebase), I then added a few things from the AndroidPermissionPlugin and KeyStorePlugin and I started having this issue.
I already tried removing all the references to those espaces but I keep having the same error. Regardless of that, I don't think it's a compatibility issue, since it generates those successfully but then, it can not find the directory for the android cordova.

So I went to https://github.com/TruewindIT/cordova-plugin-firebase#1.5 (which is the plugin URL on the FirebaseMobile espace), and noticed there were a few changes 13 / 12 days ago (that is after my last successful build and before my failed ones).
Would it be possible that some of those changes broke the apk generation for me?

I am using Outsystems version 10 for this. IOS generates fine, its just android that is having the issue.

Best Regards,
Jose Torrao

Solution

Hey José,


If you are using the plugin which references https://github.com/TruewindIT/cordova-plugin-firebase#1.5 and started having issues with Firebase Mobile, it most probably means that you're building the APK using the new version of MABS (v5).

Any code change in the github repository wouldn't have affected the 1.5 release.

If you update the Firebase Mobile plugin to the latest version (which references a later release on github) you'll be able to build the APK using the latest MABS version.

Can you please try it and check if it works?


Regards,

David

Solution

Hey David,

That worked! Thank you!


Best Regards,

Jose Torrao

David Sousa wrote:

Hey José,


If you are using the plugin which references https://github.com/TruewindIT/cordova-plugin-firebase#1.5 and started having issues with Firebase Mobile, it most probably means that you're building the APK using the new version of MABS (v5).

Any code change in the github repository wouldn't have affected the 1.5 release.

If you update the Firebase Mobile plugin to the latest version (which references a later release on github) you'll be able to build the APK using the latest MABS version.

Can you please try it and check if it works?


Regards,

David

Hello, I have the same problem to generate the apk, but I do not understand what you mean in your answer, how do I do it?


Regards,

Maroan