ConnectionResult.getErrorCode() = 4

喜夏-厌秋 提交于 2019-12-10 11:55:10

问题


Here I am doing Google+ integartion. I am using the following code but I am facing the error which is : onConnectionFailed: ConnectionResult.getErrorCode() = 4. So please anybody help me and tell me what I am doing wrong in this code and provide me the solution for this. I will be very thankful to you. I searched a lot but found nothing. I am using the quick sample of Google plus.


回答1:


According to https://developers.google.com/+/quickstart/android you get error code = 4, if you have not configured consent screen correctly.

If you are seeing ConnectionResult.getErrorCode() = 4 when trying to connect, ensure that the consent screen is configured and saved.



回答2:


Actually I got the same error, but the consent screen was good for me, my real problem was a mistake with the package name when I was trying to create a new Client ID, I put the correct one, and now I can work prefectly. Even though google says:Troubleshooting



来源:https://stackoverflow.com/questions/26193872/connectionresult-geterrorcode-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!