Cannot resolve symbol default_web_client_id in Firebase's Android Codelab

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

    I already have google-services.json downloaded and parsed, but still it doesn't find the string.

    I noticed that my oauth_client had a key with client_type of 1 and that's all. In the Google API console, I only had an Android key.

    So, you need to go to the API console and generate a Web Server key. Then, download your google-services.json again, and you'll have a oauth_client with a type of 3.

    Now, the plugin will generate a string called default_web_client_id.

提交回复
热议问题