安装谷歌玩游戏服务 [英] Setup Google Play Games Services

查看:165
本文介绍了安装谷歌玩游戏服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在玩弄新的谷歌Play游戏服务最近。我花了一段时间来建立一切办法去运行示例项目。主要是因为做了很多的小错误。因此,因此,我写了一个小清单,所以别人没有遇到同样的结果。发展是有趣的,配置是不是: - )

解决方案
  1. 在谷歌有这样一个很好的快速启动,你在这里找到: https://开头developers.google.com/games/services/android/quickstart
  2. 您必须在您的APK和设置的游戏服务上传到开发者控制台。
  3. 确保您的游戏服务的状态为准备测试。
  4. 这是没有必要的,除非你要分发它(即使测试版本需要待出版)发布的APK。
  5. 在你需要设置哪些帐户,应该能够测试该服务的游戏服务。如何做到这一点:的https://developers.google.com/games/services/console/testpub#enabling_accounts_for_testing
  6. 当您更改在开发者控制台中,部分(或全部)变更需要一段时间,他们被激活之前。这可能需要几个小时。
  7. 当链接您的应用程序的游戏服务,你需要批准的应用程序。你,你可以通过指定的证书的SHA1指纹。你可能想使用调试证书,你会发现在Eclipse中的窗口 - preferences-的Andr​​oid构建的关键。你也可以用你的公证书,您在Eclipse中导出向导发现这一点。它的优良设置两个应用,一个是调试和其它与释放证明。如果你不这样做正确,当您运行示例应用程序,你会得到一个未知错误。更多信息: https://developers.google.com/games/services/console/enabling
  8. (7B)在previous一步我第一次只用我的释放证明。为了方便调试我然后释放证明到调试证书做出。这工作,但最好还是安装一个客户端,与调试证书。如果你还想去这条道路,这里是你如何做到这一点:<一href="http://stackoverflow.com/a/14018541/1883479">http://stackoverflow.com/a/14018541/1883479

编辑:

  1. 如果您在事件得到一个白色的屏幕上面,去 https://cloud.google.com/console 并接受服务条款(只有一次PR谷歌帐户)。
  2. 在创建后的誓言客户端ID可以看出,并在API控制台中删除:的https://console.developers .google.com / 。该客户端ID可能会停止,如果不同的证书或多个证书是为同一个包名称创建工作。请注意,从GameServicesConsole是去除不从后台(API控制台)删除OAUTH客户端ID。如果游戏服务控制台不允许进入SHA-1键的,因为有在API控制台,您应该删除键。 (在7.谷歌游戏服务文档并没有提及此控制台期望的那样来解决这个白屏问题的手段)。

I have been playing around with the new Google Play Games Services lately. It took me a while to setup everything to get the example projects running. Mostly because a did a lot of small mistakes. So therefore I have written a small checklist so someone else doesn’t have to experience that same result. Developing is fun, configuring is not :-).

解决方案

  1. Google have a nice quick start of this, you find it here: https://developers.google.com/games/services/android/quickstart
  2. You have to upload your APK and setup the game service to the developer console.
  3. Make sure your game service has the status "Ready for test".
  4. It's not needed to publish the APK unless you want to distribute it (even beta versions need to be published).
  5. In the game service you need to setup which accounts that should be able to test the service. How to do it: https://developers.google.com/games/services/console/testpub#enabling_accounts_for_testing
  6. When you make changes in Developer Console, some (or all) changes takes a while before they are activated. This could take a couple of hours.
  7. When linking your app to the game service you need to authorize the application. You you do this by specifying the SHA1 fingerprint of the certificate. You probably want to use the debug certificate, you find the key in Eclipse in Window-Preferences-Android-Build. You may also want to use your public certificate, you find this in the Export wizard in Eclipse. It's fine to setup two applications, one with debug and another with release certificate. If you don't do this properly you will get an "Unknown error" when you run the example applications. More information: https://developers.google.com/games/services/console/enabling
  8. (7B) In the previous step I first only used my release certificate. To make it easy to debug I then make by release certificate to a debug certificate. This works, but it's better to setup a client with the debug certificate. If you still want to go this path, here is how you do it: http://stackoverflow.com/a/14018541/1883479

EDIT:

  1. If you get a white screen in the events above, go to https://cloud.google.com/console and accept terms of service (only once pr Google-account).
  2. After creation the OATH client IDs can be seen and deleted in the API console: https://console.developers.google.com/. The client IDs may stop working if a different certificate or multiple certificates are created for the same package name. Note that removal from GameServicesConsole does NOT remove OAUTH client ids from 'backend' (API Console). If the Games Services console does not permit entering a SHA-1 key its because there are keys in the API console you should delete. (The Google Game Services documentation in 7. does not mention this console expect as a means to fix the white screen problem).

这篇关于安装谷歌玩游戏服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆