Android/에러해결

Cannot resolve symbol default_web_client_id

lipnus 2019. 1. 29. 14:53
반응형

Cannot resolve symbol default_web_client_id


https://stackoverflow.com/questions/37810552/cannot-resolve-symbol-default-web-client-id-in-firebases-android-codelab




Solution

//구글 로그인 옵션
var gso = GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestIdToken(getString(R.string.default_web_client_id))
.requestEmail()
.build()
getString(R.string.default_web_client_id)

이거 대신 google-services.json열어서 "client_id": 값 직접 넣거나 string.xml에 넣어준다


반응형