GoogleApiClient调用connect(),而仍连接,断开失踪() [英] GoogleApiClient Calling connect() while still connected, missing disconnect()

查看:342
本文介绍了GoogleApiClient调用connect(),而仍连接,断开失踪()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1)调用connect(),而仍连接,断开失踪()。在以下情况下会出现此错误,     1)关闭WiFi和启动我的应用程序第一次。     2)我尝试连接活动的GoogleAPiClient的onCreate     3)遇到错误对话框,网络错误:需要一个数据连接来连接到GoogleApiClient。     4)因此,开关ON WIFI,再次打开我的应用程序。     5)得到连接(),同时仍然连接,缺少断开()错误。

1) Calling connect() while still connected, missing disconnect().This error occurs in following scenario, 1) Switch off Wifi and launch my App First time. 2) I try to connect GoogleAPiClient onCreate of Activity 3) Got Error dialog,Network Error:A data connection is required to connect to GoogleApiClient. 4) So Switch ON WIFI,again open my App. 5) Got connect() while still connected, missing disconnect() error.

这是我调试,我发现,没有GoogleApiClient连接回调方法,当这种情况发生时调用。

From my debugging I found,no GoogleApiClient connection callback methods are called when this occurs.

注:不发生此错误,如果我从我的设备中删除我的谷歌帐户,并添加again.Also我用老版本的谷歌的发挥services.Is它影响什么(我在我的应用程序中使用LocationClient API我不能更新。新的谷歌播放服务,监守将其更新到LocationServices API)

Note : This error not occurs,if I remove my google account from my device and add again.Also I used old version of Google play services.Is it affects anything.(As I used LocationClient API in my app I cant update to new Google play services,becuase it is updated to LocationServices API)

推荐答案

Poblem解决,当从谷歌的所有数据Play应用已删除的服务。 我认为,问题是,当播放服务记住具有succesfull授权的每个应用程序。但是你的应用程序没有成功地authorizated,或authorizated早期版本。

Poblem solved, when all data from Google Play services app was deleted. I think, problem is when play services remember every application which have succesfull authorization. But your application is not succesfully authorizated, or is authorizated in early version.

这篇关于GoogleApiClient调用connect(),而仍连接,断开失踪()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆