Google Play服务 - 登录 - 客户端ID调试vs版本 [英] Google Play Services - Sign in - Client ID debug vs release

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

问题描述

在我的第一个游戏中正确实施Google Play服务之后,现在是第二个。

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并安装在设备上我得到没有链接的应用程序与此客户端ID相关联。

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

在Google API中,我有2个客户端ID(调试和发布,也尝试删除其中一个 - 没有运气)
我尝试添加/删除测试帐户; /
我已经创建了beta测试,将游戏推送到Google Play,并标记为测试版。然后从商店安装它作为beta测试器
我也检查了SHA1值并设置正确。 META-INF / CERT.rsa显示与Google API中的发布相同的SHA

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....

推荐答案

编辑:我解决了Google笔记。 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.

Google服务开发人员链接

一秒钟链接的应用程序是关键点,不是两个游戏,而是在同一个游戏中的两个链接的应用程序

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

所以,正确的方法是链接两次相同的应用程序在Google Play开发者控制台:

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


  • 第一个包含com.name.appname和release指纹的应用程序

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

另一个应用程序,具有相同的软件包和另一个名称(AppName Test User1)和调试指纹

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.

注意:如果您进行了许多测试,请记住删除播放g中的所有应用程序Google Play开发者控制台的ames部分以及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.

这篇关于Google Play服务 - 登录 - 客户端ID调试vs版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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