Missing api_key/current key with Google Services 3.0.0

后端 未结 17 948
小鲜肉
小鲜肉 2020-12-02 07:20

Since I upgraded the project with the latest version of google services and libraries (9.0.0), I have this strange issue :

Grade console :

:         


        
17条回答
  •  遥遥无期
    2020-12-02 08:02

    You need to add SHA certificate fingerprints to your project and then download the google-services.jason file again, which should contain "api_key": [{ "current_key": "xxxxxx" }] automatically.

    You can view following page to see how to generate the fingerprints:

    https://developers.google.com/android/guides/client-auth

    On windows, just execute following command, and use android as password for debug purpose:

    keytool -exportcert -list -v -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore
    

提交回复
热议问题