google play game service errors

杀马特。学长 韩版系。学妹 提交于 2020-01-06 20:35:46

问题


I want to try google play game service in my own app, I download the sample from web and have a try with it. But when I run the sample, here are some errors show in my log cat.

Unable to retrieve 1p application 336969378003 Unable to load player 102010880864480302016

I hava set up the app correctly on the console and I don't know what's wrong with it. Waiting for your answer. Thx for everyone.


回答1:


In Step 3. Generate an OAuth 2.0 client ID it specifically gives a warning as follows:

Warning: 
Do not open the Google APIs Console directly and manually add 
your Client IDs on that page. Doing so might cause errors 
when you send requests to the game services.

So my experience was that you need to follow the guide religiously: Setting Up Google Play Game Services with the Google Play Developer Console




回答2:


As Sachin Chavan said, follow the guide to the letter. You need to use the Google Play Developer Console, not the API console. Also:

  1. (Easy to miss) If the app is not yet published, check that you are added to the app's list of testers. To do that, go to the Google Play Developer Console, find your app, go to the "Testing" tab, add yourself to the list.

  2. When you created your client ID, you are asked for a package name and a certificate fingerprint (SHA1). Check carefully that the package name on the client ID matches the package name of your app; check carefully that the certificate you are signing your app with matches the fingerprint you placed on the client ID.



来源:https://stackoverflow.com/questions/16789640/google-play-game-service-errors

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