Google Play游戏不适用于PlayStore中发布的应用 [英] Google Play Games doesn't work with app published in PlayStore

查看:312
本文介绍了Google Play游戏不适用于PlayStore中发布的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我构建了一个应用程序,并使用Google Play游戏服务实现了排行榜.

So I built an app and implemented Leaderboards with Google Play Games Services.

如果我通过adb安装该应用程序,则该服务将按预期运行.

If I install the app via adb, the service functions as intended.

如果我通过PlayStore安装了该应用程序(例如发行版,Beta版,Alpha版或内部测试版),则无法使用这些服务. Logcat没有给我任何错误.如果我要检查排行榜,它只会显示嗯,Play游戏中出现了问题".

If I install the app via the PlayStore, as Release, Beta, Alpha or internal test, I cannot use the services. Logcat doesn't give me any errors. If I want to check the Leaderboard it just says "Hmm, something went wrong in Play Games".

因此,Internet上的大多数页面都说我应该清除缓存,或者配置了错误的SHA1键.第一件事没有帮助.我清除了游戏和Play游戏应用程序的缓存.没有工作.

So most of the pages in the internet say that I should clear my cache, or I have a wrong SHA1-key configured. First thing doesn't help. I cleared the cache of my game and the play games app. Didn't worked.

因此,我检查了SHA1-键.在Google Developer Console中,我的发布密钥在上传证书下.因此,这似乎很好.在应用签名"下,有来自Google的密钥.我检查了Firebase,并使用Google的密钥激活了Google Play游戏API.

So I checked the SHA1-keys. In the google developer console, my release key is under upload certificate. So that seems fine. Under App-signature, there is the key from google. I checked Firebase, and there is Google Play Games API activated with the key from Google.

所以这似乎也是正确的.你有什么想法?我已经为此工作了三天.从互联网上检查了很多东西,却无济于事.

So that also seems right. Do you have any ideas? I am working on this for 3 days now. Checked lots of stuff from the internet and nothing works.

如果您需要任何信息,请随时询问.

If you need any information, feel free to ask.

如果我在应用商店上安装了该应用,则可以像往常一样检查排行榜,以及我之前使用自己安装的应用版本所做的输入.直到我玩游戏并将新比分发送到排行榜.从这一刻起,出现嗯,出了点问题"消息,而不是排行榜.

If I install the app over the app-store, I can check the leaderboard just as normal and the the entries I made earlier with my self installed app version. Until I play a game and send a new score to the leaderboard. From this moment on, the "Hmm, something went wrong" message comes instead of the leaderboard.

推荐答案

好,所以我发现Google证书中的sha-1密钥与错误的应用程序ID一起使用.我无法更改我使用的正确应用程序ID的密钥.它说密钥已经被使用.即使我使用正确的证书删除了错误的app-id.所以我遵循了这一点: 您指定的指纹已被该项目或其他项目中的Android OAuth2客户端ID使用 那解决了我的问题. 因此,基本上,我删除了Play控制台的API设置中的所有客户端ID,然后重新链接了该应用程序.现在一切正常. 我希望这会对以后的人有所帮助

Ok so i found that the sha-1 key from the google cert was used with a wrong app-id. I couldn't change the key for the right app-id which was used by me. It said that the key is already used. Even if i deleted the wrong app-id with the right cert. SO i followed this: The fingerprint you specified is already used by an Android OAuth2 client ID in this project or another project That solved my problem. So basically i deleted all the client-ids in the API settings of the play console and relinked the app. Now everything works. I hope this will help someone in the future

这篇关于Google Play游戏不适用于PlayStore中发布的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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