jjzjj

accesToken

全部标签

android - 来自 GoogleAuthUtil 的 "Calling this from your main thread can lead to deadlock and/or ANRs while getting accesToken"(Android 中的 Google Plus 集成)

在我的android应用程序中,我试图从GoogleAuthUtil获取AccessToken,如下所示:accessToken=GoogleAuthUtil.getToken(this,mPlusClient.getAccountName(),"oauth2:"+SCOPES);但是在这一行我得到如下错误:E/GoogleAuthUtil(4696):Callingthisfromyourmainthreadcanleadtodeadlockand/orANRsE/GoogleAuthUtil(4696):java.lang.IllegalStateException:calling

android - 来自 GoogleAuthUtil 的 "Calling this from your main thread can lead to deadlock and/or ANRs while getting accesToken"(Android 中的 Google Plus 集成)

在我的android应用程序中,我试图从GoogleAuthUtil获取AccessToken,如下所示:accessToken=GoogleAuthUtil.getToken(this,mPlusClient.getAccountName(),"oauth2:"+SCOPES);但是在这一行我得到如下错误:E/GoogleAuthUtil(4696):Callingthisfromyourmainthreadcanleadtodeadlockand/orANRsE/GoogleAuthUtil(4696):java.lang.IllegalStateException:calling