谷歌播放服务 - 登录 - 客户端ID调试VS发布 [英] Google Play Services - Sign in - Client ID debug vs release

查看:285
本文介绍了谷歌播放服务 - 登录 - 客户端ID调试VS发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在正确执行谷歌播放服务在我的第一场比赛,现在是时候为第二。

After properly implementing Google Play Services in my first game now it is time for the second.

我卡上的消息没有与此客户端ID相关联的应用程序......

I'm stuck on message "There is no linked app associated with this client ID" .....

我已经正确配置东西调试和发布。当我从Eclipse中运行应用程序,它的工作原理(调试键使用,我可以登录)。

I have properly configured things for debug and release. When i run app from Eclipse it works ( debug key is used and i can sign in ).

当我创建签名的apk和设备I get安装它没有与此客户端ID相关联的应用程序。

When i create a signed apk and install it on device i get "There is no linked app associated with this client ID".

在谷歌API我有2个客户端ID(调试和发布,还试图删除其中的一个 - 没有运气) 我曾尝试添加/删除测试账号; / 我创建了beta测试,推游戏谷歌播放,并标记为测试版。然后从商店为beta测试者安装了它 我检查也SHA1值,并设置正确。 META-INF / CERT.rsa显示相同的SHA作为释放在谷歌API

In Google API I have 2 client IDs ( debug and release , also tried to remove one of them - no luck ) I Have tried adding / removing testing accounts ;/ I have created beta test, pushed game to Google Play and marked as beta. Then installed it from the store as "beta tester" I checked also SHA1 values and are set properly. META-INF/CERT.rsa show the same SHA as release in Google API

这是不是一个新的APK,游戏服务发布,因为它们工作正常在调试模式的更新。

This is an update not a new apk, game service are published because they are working fine in debug mode.

这是一个付费应用程序。 在此之后我试图创建具有相同的包名第二联的应用程序。它不工作仍在,现在我也不能删除第二个链接的应用程序:/

It's a paid app. After this I have tried to create second linked app with the same package name. It is not working still and now i cannot delete that second linked app :/

这是一个烂摊子,但我知道什么这个可以吗? 我无法登录....

It's a mess I know but what else this can be ? I cannot sign in....

推荐答案

编辑:我解决了继谷歌注。 LOL

I resolved following the Google Note. LOL

注:如果您使用的是调试证书调试你的游戏,但配置使用释放证明的游戏服务,你应该添加使用相同的包名和调试证书的SHA1指纹第二连接的应用程序。这将允许您登录到应用程序是否它与调试或释放的证书签名。

Note: If you are debugging your game using your debug certificate but have configured game services using your release certificate, you should add a second linked app using the same package name and your debug certificate's SHA1 fingerprint. This will allow you to sign in to the application whether it's signed with the debug or release certificates.

<一个href="https://developers.google.com/games/services/android/troubleshooting#check_the_certificate_fingerprint">Google服务开发链接

第二个链接的应用程序是关键点,而不是两个比赛,但在同一场比赛两个相连的应用程序

"a second linked app" is the key point, not two game, but two linked app in the same game

所以,正确的方法是在连接两个时间在谷歌Play开发者控制台相同的应用程序:

So, the right method is to link two time the same app in the Google Play Developer Console:

  • 先用包com.name.appname应用程序,并释放指纹

  • First app with bundle com.name.appname and release fingerprint

和第二个应用程序,用同样的包和另一名(ES。AppName的测试用户1)和调试指纹

And a second app, with the same bundle and another name (es. AppName Test User1) and with debug fingerprint

在这种方式,在API开发者控制台,它创造了在同一项目中的两个OAuth2客户端ID和两个工作。

In this way, in the Api Developer Console, it creates two OAuth2 client ID for the same project and both work well.

请注意:如果你做了很多测试,记得删除在谷歌Play开发者控制台玩游戏的部分中的所有应用程序,并在API开发的所有项目控制台

NOTE: If you have done many tests, remember to delete all app in the play games section of Google Play Developer Console, and all projects in the Api Developer Console.

这篇关于谷歌播放服务 - 登录 - 客户端ID调试VS发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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