Resolve unresolved default_web_client_id

Chetan Gupta
3 min readApr 7, 2019

how to resolve unresolved default_web_client_id firebase auth!

The F u c k !

Don’t miss out on the course on Generative AI using Kotlin, Jetpack Compose, Langchain4j, and Ollama. You will learn hands-on by building 6 AI apps. Join now for lifetime access, but hurry — prices increase after July 1st!

Cannot resolve symbol default_web_client_id

It’s a very common error to run into while adding a google sign-in button to your android app using firebase auth, this is caused by two reasons, first is your google credential API for auths are misconfigured .i.e. the reason why your google-service.json file from firebase doesn't contain this web client key, and the other is that your Gradle plugin for google-services of project-level isn't generating vaules.xml properly for google services.

For first issue to Re-import google-services.json file and sync Gradle 🤞 hopefully it would work, and if it's the second, syncing your Gradle file, cleaning and rebuilding or invalidating and restarting your IDE will do the trick.

If you have tried that and it didn't help then it's the first reason and the most probable reason you're still continuing reading this post. welcome.🎉

We can’t add the value of default_web_client_id to the Value.xml as it's auto-generated by Gradle. But you…

--

--

Chetan Gupta

Android & Kotlin Expert | Training & Technical writing for Bussiness contact https://t.me/ch810