ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

android – API_UNAVAILABLE Google API客户端

2019-06-09 12:11:31  阅读:195  来源: 互联网

标签:android google-plus


无法连接到Google API客户端:ConnectionResult {statusCode = API_UNAVAILABLE,resolution = null}

我正在尝试在我的应用程序中实现基本的g登录,并且我按照与Drive API for Android Getting Started完全相同的步骤进行操作.

有没有人见过这个错误?

当我点击登录按钮时,我会收到选择我的谷歌帐户的提示.一旦我选择帐户,我的应用程序就没有任何反应.

日志如下:

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

解决方法:

根据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.

还要检查您是否在manifest中输入了正确的设置和密钥.
如果可能,尝试使用其他设备.如果您发布代码如何创建客户端,设备类型/操作系统等,它可能会缩小问题范围.

标签:android,google-plus
来源: https://codeday.me/bug/20190609/1204738.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有