I am trying to learn Firebase, so I went through the Android Codelab. The project they gave me however, had an error:
Cannot resolve symbol default_web_cl
Download your newest google-services.json
. List of client_id
is present for OAuth 2.0 client IDs in your Google Cloud Credentials.
Then check whether it contains client_id
with "client_type" : 3
or not. If not, you need to create a new one:
google-services.json
again. It should contain client_id
with "client_type" : 3
now.Clean & rebuild your project to apply new API config.
The client_id
with "client_type" : 3
is usually inside oauth_client
tag, not services
or other_platform_oauth_client
.
If you fall to this case & cannot build the project, try copy your client_id
to oauth_client
tag and rebuild again.
"client": [
...
"oauth_client": [
...
{
"client_id": "YOUR WEB CLIENT ID",
"client_type": 3
}
]
]