2013-06-27 53 views
2

我正在嘗試通過Ian Barber的此要求驗證用戶身份[1]。該按鈕要求輸入用戶帳戶,但它永遠不會顯示授權對話框,而是會退出消息「發生內部錯誤」。 logcat中顯示了這個:INVALID_KEY錯誤嘗試通過Google+進行身份驗證登錄按鈕

W/GLSUser (4353): Status from wire: INVALID_KEY status: null 
W/GLSUser (4353): Status from wire: INVALID_KEY status: null 
E/GLSUser (4353): Empty consent data 
I/GLSUser (4353): GLS error: INVALID_KEY oauth2:https://www.googleapis.com/auth/plus.login 
W/GLSUser (4353): Status from wire: Unknown status: UNKNOWN 

證書用於簽名我的應用程序是在我的谷歌API控制檯頁面配置相同,包名也是相同的。

INVALID_KEY message trying to authenticate through the Google+ Sign in Button

下後有解決方案,這裏面不工作對我來說。

我不知道是什麼問題。請幫忙。

+1

檢查這個答案的http: //stackoverflow.com/questions/16606155/cant-create-reliable-connection-to-server-error-while-signin-using-google-plu – Abdullah

回答

2

當然你會通過以下步驟得到解決方案。
解決方案:

1.go to your Developer Console 
2.APIs & Auth 
3.Consent Screen 

注:唐`忘了檢查您的SH1鍵,在同意畫面登記您的電子郵件ID。

0

一個原因,爲什麼會出現這樣的錯誤:

如果你有一個子包,確保你只提到你的應用程序的主包中的開發者控制檯,而不是子包。

例如:如果你的應用程序是com.example.myapp下,如果你的G +登錄活動正在包com.example.myapp.authentication,在開發者控制檯,輸入包的名稱應該是com.example.myapp(離開了分裝)

相關問題