Cannot resolve symbol default_web_client_id in Firebase's Android Codelab

前端 未结 19 1362
说谎
说谎 2021-02-01 05:18

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

19条回答
  •  温柔的废话
    2021-02-01 06:10

    Sometimes there is issue while parsing google-services.json. I have reported this issue with to concerned team.

    Meanwhile follow below step to fix this issue to get going further -

    1) Open google-services.json file -> client -> oauth_client -> client_id

    2) Copy this client ID and hardcode this .requestIdToken("your ID")

    It would allow to request "IdToken" via GoogleSignInAccount post successful google login and to authorize your credential with firebase.

    EDIT

    Try deleting and recreating the project and re-importing new google-service.jsonin your Android project

提交回复
热议问题