简体   繁体   English

Google Play 服务仅适用于 Android Studio

[英]Google Play Service only works with Android Studio

I have a very strange problem with my Android App and the Google Play Services.我的 Android 应用程序和 Google Play 服务有一个非常奇怪的问题。

With the debug Version of my App everthing works fine.使用我的应用程序的调试版本,一切正常。 And also when I started the release App over Android Studio on my real device it worked.而且,当我在我的真实设备上通过 Android Studio 启动发布应用程序时,它也能正常工作。 But when I installed the App from Google PlayStore the Game Services stopped working after about 10 min.但是当我从 Google PlayStore 安装应用程序时,游戏服务在大约 10 分钟后停止工作。 And I was not able to sign in again.而且我无法再次登录。

Then I uninstall the App from my device and tested it from Andoid Studio again.然后我从我的设备上卸载了该应用程序并再次从 Andoid Studio 中对其进行了测试。 The first time it didn't work, but after reinstall it via Android Studio the Play Services worked again.第一次它不起作用,但在通过 Android Studio 重新安装后,播放服务再次起作用。 Then I tried the App from PlayStore again, and first it worked again, but after a view minutes I had the same problems then before to sign in.然后我再次尝试了 PlayStore 中的应用程序,首先它再次运行,但在查看几分钟后,我遇到了同样的问题,然后才登录。

Any ideas?有任何想法吗?

Having exactly the same problem my self. 我的自我有完全一样的问题。 If you find out what's causing this, please let me know. 如果您找出造成这种情况的原因,请告诉我。 I will do the same! 我也会这样做!

I know it's an old post, but probably there are other developers facing that issue.我知道这是一个旧帖子,但可能还有其他开发人员面临这个问题。 You probably didn't set the fingerprint of your signing certificate of the app in the play store in your API console: https://developer.android.com/games/pgs/console/setup您可能没有在 API 控制台的 Play 商店中设置应用程序签名证书的指纹: https://developer.android.com/games/pgs/

Remember, you need to register both, the key of your productive app and your development version.请记住,您需要同时注册生产应用程序的密钥和开发版本。 Don't confuse with the key you use for uploading.不要与您用于上传的密钥混淆。 The released version of your app is not signed with that one, but rather with the certificate displayed in your play console under configure -> app-integrity -> app signing tab您的应用程序的已发布版本未使用该版本进行签名,而是使用您的游戏控制台中显示的证书在配置 -> 应用程序完整性 -> 应用程序签名选项卡下

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM