Cannot resolve symbol default_web_client_id in Firebase's Android Codelab

前端 未结 19 1353
说谎
说谎 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:06

    I had the same problem or similar,

    Make sure that in your google-services.json you have:

    ...    
    "client": [
            ...
              "oauth_client": [
                ...
                {
                  "client_id": "YOUR WEB CLIENT ID",
                  "client_type": 3
                }     
    ...
    

    For some reason the file downloaded from firebase console doesn't include it.

    After adding the entry in the google-services.json file, everything started working as expected.

    google-services-plugin documentation

提交回复
热议问题