android play 游戏服务配置不正确。有谁知道如何解决?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20756769/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 03:24:28  来源:igfitidea点击:

android play games services is incorrectly configured. anyone know how to fix?

androidgoogle-play-games

提问by UKDataGeek

enter image description hereI have a weird bug that's cropped up.

enter image description here我有一个奇怪的错误突然出现。

My app works perfectly when I sign it with the android debug key store. But when I sign it with my own key, users are unable to sign in.

当我使用 android 调试密钥库对其进行签名时,我的应用程序运行良好。但是当我用自己的密钥签名时,用户无法登录。

I get the message "The application is incorrectly configured. Check the package name and signing cerificate match the client id in the developer console"

我收到消息“应用程序配置不正确。检查包名称和签名证书是否与开发人员控制台中的客户端 ID 匹配”

I have done this and have added a new client I'd with the correct certificate and package name but it still doesn't seem to be working.

我已经这样做了,并添加了一个新客户端,我会使用正确的证书和包名称,但它似乎仍然无法正常工作。

Anyone know what else I could try or if there is a known issue?

任何人都知道我还可以尝试什么或是否存在已知问题?

回答by UKDataGeek

Ok all here is how I managed to fix it after a lot of trial and error.

好的,这就是我经过大量试验和错误后设法修复它的方法。

  1. If you have created a client id in the google api console for your release certificate sha1 and release package name then delete it.

  2. Go into the developer play store console and follow the steps to link another app ( screenshot below) enter image description here

  1. 如果您已在 google api 控制台中为您的发布证书 sha1 和发布包名称创建了客户端 ID,则将其删除。

  2. 进入开发者 Play 商店控制台并按照步骤链接另一个应用程序(下面的屏幕截图) enter image description here

Then proceed to follow the steps that it takes you through which will create a new client id.

然后继续按照它带您完成的步骤创建一个新的客户端 ID。

  1. Now this is the important bit....
  1. 现在这是重要的一点......

( Even though the UI will look the same and Google will give no visual indication that you need to do anything more to get it working and make you assume that changes have been autosaved) Press the publish button. It will then give you a list of changes that it needs to publish.

(即使 UI 看起来相同,Google 也不会给出任何视觉指示,表明您需要做更多事情才能使其正常工作,并让您假设更改已自动保存)按下发布按钮。然后它将为您提供需要发布的更改列表。

Press publish and after a few hours your app will start to work.

按发布,几个小时后您的应用程序将开始工作。

Hooray

万岁

回答by Bruno Oliveira

Try our troubleshooting guide: https://developers.google.com/games/services/android/troubleshooting

试试我们的故障排除指南:https: //developers.google.com/games/services/android/troubleshooting

In our experience, most problems of this nature can be solved by carefully following the steps indicated there.

根据我们的经验,通过仔细按照此处指示的步骤操作,可以解决大多数此类问题。

回答by Bert Baker

I had this problem because I forgot that in Android Studio you can't directly send an app to your device if it is a game being played through Google Play. If you do, you will get this error message. You have to instead in the Build menu of Android Studio, select Generate Signed APK..., and then send the app to your device from a console using the command "adb -d install <'app name'>.apk." Then since I had previously sent the app to my device directly from Android Studio, I proceeded to get the error message from adb of "INSTALL_PARSE_FAILED_NO_CERTIFICATES." To fix this, I had to delete from my device the app which I had previously downloaded from Android Studio. Then the command "adb -d install <'app name'>.apk" worked, and the app ran correctly.

我遇到了这个问题,因为我忘记了在 Android Studio 中,如果它是通过 Google Play 播放的游戏,则您无法直接将应用发送到您的设备。如果这样做,您将收到此错误消息。您必须改为在 Android Studio 的 Build 菜单中,选择 Generate Signed APK...,然后使用命令“adb -d install <'app name'>.apk”从控制台将应用程序发送到您的设备。然后,由于我之前直接从 Android Studio 将应用程序发送到我的设备,因此我继续从“INSTALL_PARSE_FAILED_NO_CERTIFICATES”的 adb 获取错误消息。为了解决这个问题,我必须从我的设备中删除我之前从 Android Studio 下载的应用程序。然后命令“adb -d install <'app name'>.apk”起作用了,应用程序运行正常。