gpt4 book ai didi

android - API_UNAVAILABLE 谷歌 API 客户端

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:47:09 24 4
gpt4 key购买 nike

无法连接到 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

最佳答案

根据 API_UNAVAILABLE 的 Google 文档:

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 中输入了正确的设置和 key .如果可能,请尝试使用不同的设备。如果您发布代码如何创建客户端、设备类型/操作系统等,它可能会缩小问题范围。

关于android - API_UNAVAILABLE 谷歌 API 客户端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30314765/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com