且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

API_UNAVAILABLE谷歌API客户端

更新时间:2022-10-15 14:18:35

同样的事情发生here.I认为这是激活的,但是,像我一样,你可能还没有激活Google+的API把谷歌阿比控制台。

在上面点击你想要的API和你会发现一个按钮激活。

等待几分钟,请关闭您的应用程序,然后再试一次。它可能会工作。

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

I am trying to implement the basic g+ login in my app and I have followed the steps exactly like in Drive API for Android Getting Started.

Has anyone seen this error before?

When I click on the signin button I get the prompt to select my google account. Once I select the account nothing happens in my app.

The logs are below:

E/MDM     (32664): [33508] b.run: Couldn't connect to Google API client: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null}
I/LoadedApk(32664): getClassLoader :dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/com.android.location.provider.jar", zip file "/system/framework/com.android.media.remotedisplay.jar", zip file "/data/app/com.google.android.gms-2/base.apk"],nativeLibraryDirectories=[/data/app/com.google.android.gms-2/lib/arm64, /vendor/lib64, /system/lib64]]]
I/SurfaceFlinger( 3100): id=2396 Removed SurfaceView (-2/9)
D/LocationInitializer(29281): Restart initialization of location
W/ActivityManager( 3499): userId = 0, bbcId = -10000
W/ActivityManager( 3499): NORMAL SET : dst_category = 701, src_allowCategory = 0,701-1023

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

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.