Android Studio. Error: Cannot resolve symbol 'default_web_client_id'

1,722 views
Skip to first unread message

Rizwan Vandal

unread,
Jan 21, 2019, 11:02:58 PM1/21/19
to Firebase Google Group
I've recently changed my development computer and have been getting the error as per the subject line. The strange thing is that even with this error, my code is able to compile and I'm able to run my app and sign into google without any issues. I have tried the following steps, but still seem to have this error. 

1) Checked to make sure firebase and google dependencies have been added
2) Re-added the google-services.json file.
3) Checked that the OAuth 2.0 client id in the google developer console matches the id in the json file
4) Performed "Invalidate Cache/Restart"
5) Deleted the .idea folder and .iml files and re-imported the project


The strange thing is that if i look at the values.xml file in my app, the correct default_web_client _id is there, but android studio is unable to resolve it. Any ideas would be helpful.

Samuel Stern

unread,
Jan 22, 2019, 11:18:14 AM1/22/19
to fireba...@googlegroups.com
Hi Rizwan,

I've gotten into situations like this myself, and getting out seems to be mostly luck.  If your app compiles and runs fine then this is just an Android Studio issue, which means there's probably nobody on this email list who can help you.  You can report a bug to Android Studio and hopefully they can point you in the right direction!

- Sam

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/853eb2d3-0fe1-4587-a2e4-0d9486142961%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Cricket Mega

unread,
Apr 5, 2019, 10:49:58 AM4/5/19
to Firebase Google Group

Well The solution is simple and easy. Most of the developers finds the error when they closed the project and reopen it then the default_web_client error results.

Solution:
You need to add the client id in the
res-->values-->string
<string name="default_web_client_id" translatable="false">xxxxxxxx</string>
for the client id(xxxxxxxxx) you can go to Firebase console and paste here.
https://youtu.be/Uwuy17eouCg
### This video will guide you properly.

Reply all
Reply to author
Forward
0 new messages