API_UNAVAILABLE Google API client

后端 未结 2 1166
再見小時候
再見小時候 2020-12-11 07:48

Couldn\'t connect to Google API client: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null}

I am trying to implement the basic g+ login in my

相关标签:
2条回答
  • 2020-12-11 08:29

    As per Google docs for API_UNAVAILABLE:

    One of the API components you attempted to connect to is not available. The API will not work on this device, and updating Google Play services will not likely solve the problem. Using the API on the device should be avoided.

    Also check if you have put the correct settings and keys in the manifest. Try on different device if possible. If you post the code how you are creating the client, device type/os etc, it might have narrow down the problem.

    0 讨论(0)
  • 2020-12-11 08:32

    Same happened here.I thought it was activated, but, as i did, you probably haven't activated Google+ Api on the Google Api Console.

    • Login here: https://console.developers.google.com/project?authuser=0
    • Choose your project
    • Find "APIs and Auth" on the left
    • Click on API
    • On this list, you'll see many APIs available.

    Click on the APIs you want and you'll find a button "activate" on the top.

    Wait a few minutes, close your app and try again. It will probably work.

    0 讨论(0)
提交回复
热议问题