🔥 Fire Analytics : An extension to add Firebase Analytics to your apps

For reference of users

Going to import in my project.
By the way after create any event how many time take to show in Firebase ?

I tried first time and it took 1 day to display :slight_smile:

1 Like

Hi UB,

This is really cool, I’m interested in tracking my project with FB, but when I build with the latest version of Kodular, it is not able to build aabs. I tested even with the fire.aia you released on the other thread with how to use extension. This is the error log I get:
Kodular is unable to compile this project.
The compiler error output was
________Preparing application icon
________Creating animation xml
________Creating fragment xml
________Creating listview xml in res/layout/…
________Creating listview xml in res/layout-v21/…
________Creating xml in res/drawable/…
________Creating splash png in res/drawable/…
________Creating colors xml
________Creating styles xml
________Creating drawables xml v21
________Checking for firebase
________________Firebase components found.
________________Firebase config file error.
.
Edit:
I did test on my actual project and added the google services.json etc, with same error.

Error comes because you didn’t add google-services.json

I realized that may pop up, so I edited my op under my log that I have already done that, and my original project which does have a firebase project gets stuck at 85% building always still.

Still same error ? Firebase config file error ? If yes

  1. Make sure that google-services.json is in assets.
  2. Make sure it doesn’t have a number, like google-services(1).json.
  3. The package name of your app, and the package name you provided to firebase to download “google-services.json” MUST be the same
  4. and finally check if firebase url is missing from json
1 Like

Thank you, I will check these things :+1:

1 Like

I went through your check, the firebase url I was missing, thanks again.

I’m still a bit “wet behind the ears” with Firebase, but I checked my Real-time Database and app settings and ids were matching, checked my google-services.json, rebuilt my app and unfortunately having an error still, but the log is different. However, when I remove the ext. it builds again:
Kodular is unable to compile this project.
The compiler error output was
________Preparing application icon
________Creating animation xml
________Creating fragment xml
________Creating listview xml in res/layout/…
________Creating listview xml in res/layout-v21/…
________Creating xml in res/drawable/…
________Creating splash png in res/drawable/…
________Creating colors xml
________Creating styles xml
________Creating drawables xml v21
________Checking for firebase
________________Firebase components found.
________________Firebase config file successfully added.
________Creating provider_path xml
________Creating network_security_config xml
________Generating adaptive icon file
________Generating round adaptive icon file
________Generating adaptive icon background file
________Generating manifest file
________Attaching native libraries
________Attaching Android Archive (AAR) libraries
________Attaching component assets
________Invoking AAPT
AAPT2 compile time: 0.423 seconds
AAPT2 link time: 1.274 seconds
________Compiling source files
(compiling ************************************/Screen1.yail to ***********************************************.Screen1)
(compiling /tmp/runtime363568459752595713.scm to com.google.youngandroid.runtime)
Kawa compile time: 3.695 seconds
________Invoking DX
DX time: 37.04 seconds
___________Creating structure
___________Extracting protobuf resources
________Running bundletool
.

I could be missing something obvious, but checking the log, not sure. (*Note I intentionally obfuscated just my project name and such).

@UnknownBeast
It already worked but only the first time and the rest of the times it didn’t work
Even though I have a google file in the media
What is the cause of the problem and is there a solution?

What is use of Tag and Value in Log block?

Hi,
I wanted to know if Fire Analytics works in Companion…
Please tell

Developer left KODular

I used this extension and my app crashed because of it !!!

extension is not updated, causing crash.

IMG_20220516_015002

This will work?

well, I no more gurantee working of my firebase extensions because, all of them are built on latest sdk, whereas kodular one’s have bit too old sdk (That may cause conflicts)

2 Likes

An update from Kodular Staff read this

Big Update

As stated above, we are working on a huge update to address most of the issues and make sure that Kodular keeps running for more years.
At a glance, this update will bring Target SDK 32, and will (finally) integrate the new Android file system, so all related bugs to that problem should be solved. It will also include new features and minor improvements as well.
But it will also finally deprecate Google Admob components, as they will no longer be available, even for existing apps. Thus, migration to Google Ad Manager shall be mandatory by that date if you want your app to target Android 12.

:dart: We are aiming to launch this update on the 26th of June 2022. We will keep the community up-to-date if this changes at any point.

My reply states the old sdk to be sdk present in firebase components, not target sdk, etc stuff…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.