Generation of the Firebase Android resource file google-services.xml from Assets/GoogleService-Info.

Hi Everyone,

I tried to integrated Firebase to my Unity project. I sure did integrate Firebase to my project many times before. But this time I keep getting this error:

Generation of the Firebase Android resource file google-services.xml from Assets/GoogleService-Info.plist failed.

If you have not included a valid Firebase Android resources in your app it will fail to initialize.
“python3”
“/***/Assets/Firebase/Editor/generate_xml_from_google_services_json.py” -i “Assets/GoogleService-Info.plist” -l --plist

Could not find key in plist file: [CLIENT_ID]

You can start to diagnose this issue by executing "“python3”

“***/Assets/Firebase/Editor/generate_xml_from_google_services_json.py” -i “Assets/GoogleService-Info.plist” -l --plist" from the command line.

UnityEngine.Debug:LogError (object)
Firebase.Editor.GenerateXmlFromGoogleServicesJson:RunResourceGenerator

Can you please give me some advices? Thank you!

You’d probably get more help on the Firebase forums or reaching out to them.
But, only thing I can say is make sure you have both the android and iOS files that Firebase provides within your project.

Thank you @Brathnann
I double check and I’m sure I have both the android and iOS files that Firebase provides within my project.
I found this post about similar error but its about missing [DATABASE_URL]

If you add something like Firebase firestore or the realtime database, you need to redownload both the android and iOS files from Firebase as I believe it adds the path to the database afterwards.

I know I need to re-download if there’s any changes happens on firebase console. I use firebase analytics and crashlytics for my project. I integrated firebase for some projects before, but this time I don’t know why files from Firebase missing [CLIENT_ID] for both android and iOS.

it is Firebase update and the default config does not create Oauth credentials.

https://github.com/invertase/react-native-firebase/issues/7338

the quick resolve to enable Google auth login:

https://github.com/invertase/react-native-firebase/issues/7338#issuecomment-1748440060