dialog unknown issue in google play services when try to use Google Drive sample

烈酒焚心 提交于 2019-12-23 15:53:34

问题


I Google more then 4 hour but not getting the solution. I register my app pkg and hash key in app console. I am using sample provided by Google developers. But what happening I don't know.

not able to post and image due to less reputation

Sorry for my English.


回答1:


Make sure you have added your package name and key SHA1 at

Google Cloud Console → Your Project → API & auth → Credentials via “Create New Client ID” at “OAuth” section.

I got the same result as you described when added information via “Create New Key” at “Public API access” section.

The procedure is described at documentation steps 7 and 8.




回答2:


If you sure package name and key SHA1 is ok, check CLIENT. May not have all the services are enabled but you use CLIENT_ALL.

CLIENT_ALL=

gameHelper = new GameHelper(gameActivity, GameHelper.CLIENT_GAMES | GameHelper.CLIENT_PLUS
            | GameHelper.CLIENT_APPSTATE | GameHelper.CLIENT_SNAPSHOT);

Use same CLIENT_APPSTATE:

gameHelper = new GameHelper(gameActivity,CLIENT_APPSTATE);

Little by little add CLIENT and check which one CLIENT cause dialog.




回答3:


In the developer's console, make sure that your project's consent screen 'email address' and 'product name' fields are set. I was getting this error until I provided valid values for these fields.




回答4:


In my case, I was using SHA key of my release version instead of build version's SHA key.



来源:https://stackoverflow.com/questions/21403454/dialog-unknown-issue-in-google-play-services-when-try-to-use-google-drive-sample

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