Official Content

Android configuration file downloaded from Firebase's backend

Scope

Platforms: Smart Devices(Android)

Description

In order to use Firebase Analitytics in your application, you must add a configuration file. Such configuration file may be obtained from the Firebase console. You must add it to the KB as a File under the name "google-services_json", and you must also make sure that the file is referenced from this property. GeneXus will do the rest automatically. 

For further information on the creation of the project in Firebase go to Add Firebase to Your Android Project

Troubleshooting

No matching client found for package name

The following error occurs compiling the Android project.

Parsing json file: ...\google-services.json
> Task :MainObjectName:processDebugResources
error: 
error: FAILURE: Build failed with an exception.
error: 
error: * What went wrong:
error: Execution failed for task ':MainObjectName:processDebugGoogleServices'.
error: > No matching client found for package name 'com.artech.kbname.mainname'

Review the google-services.json configuration file uploaded to the KB and make sure it matches the configuration for the Android Package Name property associated to the main object.

FirebaseCrashlytics Failed to retrieve settings

The following error is detailed on the Android device logcat

com.artech.kbname.mainobject E/FirebaseCrashlytics: Failed to retrieve settings from https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/1:ID:android:Id/settings

You may need to wait up to 24 hours to get the first analytics reports.

Runtime/Design time

This property applies only at design-time.

Availability

This property is available since GeneXus 16 upgrade 2.

See Also

Analytics Provider property

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant