问题
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.
- I took App_id from console, it's 100% correct.
- I'm trying to log in with an test account
- 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