[Bug] Firebase Analytics disabled due to missing google_app_id on Android
[REQUIRED] Please fill in the following fields:
- Unity editor version: 2022.3.6f1.
- Firebase Unity SDK version: 11.8.1
- Source you installed the SDK: unitypackage
- Problematic Firebase Component: Analytics
- Other Firebase Components in use: none
- Additional SDKs you are using: IronSource
- Platform you are using the Unity editor on: Windows
- Platform you are targeting: Android
- Scripting Runtime: IL2CPP
- Pre-built SDK from the website or open-source from this repo: Pre-built SDK
[REQUIRED] Please describe the issue here:
Firebase Analytics is disabled due to a missing google_app_id. This issue is consistently reproducible and results in Firebase Analytics being disabled, with logs indicating that the app measurement is disabled due to the missing ID.
Steps to reproduce:
*Import Firebase Analytics SDK version 11.8.1.
*Configure Firebase according to the setup instructions, including adding the google-services.json file to the project.
*In the custom launcher template, the following packagingOptions were added:
packagingOptions { pickFirst 'META-INF/kotlinx_coroutines_core.version' doNotStrip '/armeabi-v7a/.so' doNotStrip '/arm64-v8a/.so' }
//i've added it because having multiple copies of the kotlinx_coroutines_core.version file from different dependencies do not allow to make a buildd
- Manually add Firebase configuration in the Unity script, appId, projectId, because otherwise an error occurred during initialization
*Build and run the app on an Android device.
- Checked with logcat: 04-03 19:51:17.152 572 13015 E FA : Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI 04-03 19:51:19.097 13165 13191 V FA : Deferring to Google Analytics for Firebase for event data collection. https://goo.gl/J1sWQy 04-03 19:51:19.307 13165 13212 I FA : App measurement disabled via the manifest 04-03 19:51:19.315 13165 13212 I FA : App measurement initialized, version: 86006
Repro Rate: 100%
I've tried updating all SDKs and Unity, but the problem still remains.