android - GmsClient "calling connect() while still connected"暂停时

标签 android google-play-services chromecast

GoogleApiClient 会在连接暂停时(即调用 onConnectionSuspended() 回调时)记录以下错误:

GmsClient E 在仍然连接的情况下调用 connect(),缺少 disconnect()。

看来客户端正在自动调用 connect()reconnect() 以响应可能的 transient 错误。如果错误未在 10 秒左右内解决,则会调用 onConnectedFailed() 回调。

此错误消息只是误报,还是表明我在使用 GMS API 时存在实际问题?如果重要的话,我正在使用 Cast API。

最佳答案

该消息无害。您看到任何副作用了吗?

关于android - GmsClient "calling connect() while still connected"暂停时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24921782/

相关文章:

android - 在 BroadcastReceiver 中获取 WakeLock 并在 Service 中释放它的正确模式

android - 将 google play 服务库添加到 Cordova

android - Google Game Center 中的空指针异常

android - Google Maps Android API V2 不在模拟器上显示 map

android - Chromecast 是否特别兼容 YouTube Android Player API?

swift - Google Cast 标签未本地化为设备语言

android - 当我从对话框 fragment 返回并且编​​辑文本获得焦点时,不会调用 onBackPressed

java - 如何比较 "now"和 future 时间

android - 如何在 fragment 中使用startmanagingcursor?

android - 将我的 Android 应用程序中的 Youtube 视频直接转换到 Youtube(在 chromecast 或 roku 或电视中)