且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

谷歌Play游戏服务 - 无法登录到游戏中心

更新时间:2023-02-02 19:39:13

控制台你应该在不同的客户端ID添加不同的SHA1。

起初,我加了调试,并在一个客户端ID发布SHA1s - 不工作。创造了两个不同的客户端ID - 现在的工作

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?

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.