更新时间:2023-02-02 19:39:13
在控制台你应该在不同的客户端ID添加不同的SHA1。
起初,我加了调试,并在一个客户端ID发布SHA1s - 不工作。创造了两个不同的客户端ID - 现在的工作
Things I've done so far:
added and linked my app in the Dev Console (game services)
included the App_id into my app/manifest
added BaseGameActivity and GameHelper to my project (from GitHub)
added the google-play-services library to my project
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.
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.