您指定的指纹已被此项目或其他项目中的 Android OAuth2 客户端 ID 使用

The fingerprint you specified is already used by an Android OAuth2 client ID in this project or another project

我注意到 android 工作室 gradle 查看签名报告中显示的 SHA1 编号与我原来的不同。我想也许是一年前换电脑的缘故。我的游戏应用程序仍然能够访问排行榜和成就。我在 Google API 仪表板时注意到 'OAuth client' 有我的旧 SHA1。它不会让我将它更改为我的新 SHA1,说它 'had already been used by this client or another client',尽管我没有其他客户。神秘的 'Anroid client 1' 和 'Android client 2' 既没有旧的也没有新的 SHA1。 'OAuth client' 下方是 'OAuth client (auto created by google service)',其中包含我的新 SHA1。我继续删除了那个,尽管它警告我它在上周被使用了 147 次(我想这是我即将衰老的证据)。看来我必须删除它才能为我的 'OAuth client' 释放不是自动创建的号码。

现在看来我被搞砸了,因为当我尝试更改 SHA1 时它仍然给我 'the already in use message',而且我的游戏应用程序根本无法再访问 Google Play 服务。我想我应该删除 'OAuth client' 而不是。我可以从中恢复吗?它会随着时间的推移而释放吗?另一个 post 建议在 7 天内删除客户,尽管我没有看到删除整个客户的按钮,并且担心删除同一页面上的 API 代码。

编辑 3/30 - 看起来我可能已经永久失去了这个数字,尽管(我希望)它只影响我的排行榜和成就,而不影响 Firebase、应用内购买或广告。无论如何,我可以在 Firebase 中推出自己的排行榜和成就。具有不同包名的新项目在 Gradle signingReport.

中给出了相同的无法使用的 SHA1

我终于通过电子邮件从 Google 支持人员那里得到了有用的回复,提供了如何开始恢复过程的线索:

I understand you're receiving a Client ID error when trying to link your app to a Game Services project. This error message is displayed because your package ID and SHA1 are already in use by another Client ID.

To resolve this issue, please use the steps below to delete the Client ID from your Google Developers Console (formerly Cloud Console).

Important: Do not delete the Google Developers Console project before deleting the Client ID. If you’ve already deleted the project, you will need to undelete it from your Projects list.

1. Use the following URL to access the project - https://console.developers.google.com/project/186639667931
2. Select APIs & auth > Credentials
3. Under “Client ID for Android application” click the “Delete” button.
4. Try linking your app in the Play Console again. If you’re unable to view or undelete the project linked in step 1, please try accessing it while logged in with the primary email address on your Play developer account.

没有'Client ID for Android application',但是'OAuth 2.0 client IDs'下面有一个'OAuth Client',所以我删掉了。那仍然有一个旧的 SHA1 号码,因为它不会占用我当前的号码。所以我并没有真正删除我当前号码的东西,但是删除这个删除了整个客户端并出现了一个空白屏幕。这里有点陷阱。我将我当前的 SHA1 号码添加到该屏幕,它接受了。现在我可以从我的应用程序中再次获得来自 Google Play 网站的响应,尽管它的响应始终是 'Cannot access services'。

事实证明,此屏幕是默认屏幕,即 'Google Play Android Developer'。我将不得不研究一下这是什么,但我需要添加 SHA1 的是我的实际应用程序名称。我最终发现隐藏在最顶部的下拉列表中,在 'Google APIs' 旁边,在我下载的示例应用程序和 'Google Play Android Developer' 旁边。在我返回并从 'Google Play Android Developer' 中删除 'OAuth Client' 之前,我仍然无法将当前的 SHA1 添加到其中。这买回了相同的默认屏幕,所以我回到下拉菜单,选择我的应用程序名称,然后终于能够将我当前的 SHA1 添加回它。

因此,删除 SHA1 似乎并不是从 Play 服务中永久放逐,只是重新建立它的棘手过程的开始。