Caused by: java.lang.IllegalStateException: GoogleApiClient is not connected yet

后端 未结 5 666
暖寄归人
暖寄归人 2021-01-18 02:13

I am getting this error message when trying to implement logout for Google Sign-In for Android:

Caused by: java.lang.IllegalStateException: GoogleApiClient i         


        
5条回答
  •  滥情空心
    2021-01-18 03:06

    You should ditch the threading and just create a second GoogleApiClient. According to this post (https://stackoverflow.com/a/25190497/608347) the client isn't a heavy object so might as well avoid the confusing design and make things simple. Even if you dont go down this path you should strip out that #setClient and #getClient code and see if you get the same error when disconnecting from a single activity

提交回复
热议问题