We had an issue with the firebase apps and had to re-create the android app on firebase. This meant I had to update the google-services.json file.
After doing this, firebase remote config worked but analytics and crashlytics did not.
Turns out android studio was using-an auto generated file values.xml. This contained
<string name="google_app_id" translatable="false">1:xxxxxxx:android:yyyyyyyy</string>
The yyyyyy part of it was still using the old value from the previous google-services.json file. Deleting this file for all flavors, debug and release builds, coupled with an invalidate caches + restart
might do the trick, but just to be safe, what fixed it for me was:
- commenting all the firebase libs from all gradle files
- syncing gradle
- project will not compile at this points since it cant find Firebase dependencies
- invalidate caches + restart
- uncomment firebase libs in all gradle files
- sync gradle
- run app and check if firebase crashlytics works
I am using Android studio 4.1.2