My project works fine for last six month and app in play store. For an update, I reopen the project shows default_web_client not resolved for the following piece of code.
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestIdToken(getString(R.string.default_web_client_id))
.requestEmail()
.build();
I try the following methods,
1.Clean and rebuild
2.Clear cache and restart
3.Set getString(R.string.default_web_client_id) as empty string and run the project to generate
app/build/generated/res/google-services/{build_type}/values/values.xml
file as instruction from this link
4.Replace empty string with getString(R.string.default_web_client_id)
Now I able to run the project and also able to take release build. But still, Cannot resolve symbol default_web_client_id.
Any update would be helpful...
NB: Directly adding oauth_client->client_id will get an Error
W/GoogleActivity: Google sign in failed
com.google.android.gms.common.api.ApiException: 12500:
at com.google.android.gms.common.internal.ApiExceptionUtil.fromStatus(Unknown Source)
