Google Play Game Services - unable to sign in to Game Center

我的梦境 提交于 2019-12-10 13:18:23

问题


Things I've done so far:

  1. added and linked my app in the Dev Console (game services)

  2. included the App_id into my app/manifest

  3. added BaseGameActivity and GameHelper to my project (from GitHub)

  4. added the google-play-services library to my project

  5. extended BaseGameActivity

What is ee in log:

GameHelper: **** APP NOT CORRECTLY CONFIGURED TO USE GOOGLE PLAY GAME SERVICES
 GameHelper: **** This is usually caused by one of these reasons:
 GameHelper: **** (1) Your package name and certificate fingerprint do not match
 GameHelper: ****     the client ID you registered in Developer Console.
 GameHelper: **** (2) Your App ID was incorrectly entered.
 GameHelper: **** (3) Your game settings have not been published and you are 
 GameHelper: ****     trying to log in with an account that is not listed as
 GameHelper: ****     a test account.
  1. I took App_id from console, it's 100% correct.
  2. I'm trying to log in with an test account
  3. SHA1 and package name 100% correct.

How can i check where is the problem?

p.s. i see Client ID in console, looking like: 165***6-***.apps.googleusercontent.com

Should i use it?


回答1:


Take a look at our troubleshooting guide. It covers many common setup issues and in our experience it solves 80% of problems. Also, the previous sentence contains an arbitrary percentage.




回答2:


You only want to use the numbers "165*6-*" in the client ID. Do not add the ".apps.googleusercontent.com" part.

Link

Better link, see Note text




回答3:


In console you should add different SHA1 in different Client ID.

Initially, I added debug and release SHA1s in one Client ID - not working. Created two different Client ID - now work.



来源:https://stackoverflow.com/questions/20420328/google-play-game-services-unable-to-sign-in-to-game-center

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