您指定的签名指纹已被另一个 Android OAuth2 客户端使用 [英] The signing fingerprint you specified is already used by another Android OAuth2 client

查看:27
本文介绍了您指定的签名指纹已被另一个 Android OAuth2 客户端使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

前段时间我在 Google API 控制台中为 Android 应用程序创建了一个带有 Oauth2 client id 的示例项目(我们称之为示例项目").我还添加了 SHA1 指纹 和包名(例如 com.package.name).

Some time ago I created an example project (lets call it "example project") with Oauth2 client id for android application in Google APIs console. I also added SHA1 fingerprint and package name (for example com.package.name).

我的错误是已经存在具有相同包名的应用程序.现在我需要在有效项目"中为 android 应用程序创建一个 Oauth2 客户端 id 包名 com.package.nameSHA1 指纹 我之前添加的.显然,当我尝试添加此指纹时出现错误.

My mistake was that an application with same package name already existed. Now I need to create an Oauth2 client id for android application in the "valid project" with package name com.package.name and with SHA1 fingerprint which I added before. Obviously when I tried to add this fingerprint I got an error.

The signing fingerprint you specified is already used by another Android OAuth2 client.

在那之后我想起了示例项目"并从这个项目中删除了client id.问题是我仍然无法为包名称 com.package.name 添加此指纹.Client id 被删除了,但我仍然有和上面一样的错误.

After that I remembered about "example project" and deleted client id from this project. The problem is that I still not able to add this fingerprint for package name com.package.name. Client id is deleted but still I have the same error as above.

那么我有可能在另一个项目中将这个指纹用于同一个包名吗?

So do I have a possibility to use this fingerprint for the same package name in another project?

推荐答案

当 Google Developers 上现有的 SIGNING CERTIFICATE FINGERPRINT (SHA1) 链接到其他帐户时,会发生此错误.

This error occurs when there is an existing SIGNING CERTIFICATE FINGERPRINT (SHA1) on Google Developers linked to a different account.

解决方案是删除旧/不正确项目的 console.developers.google.com 中使用该 SHA1 的项目.

Solution is to delete the project that is using that SHA1 in console.developers.google.com for the old/incorrect project.

SHA1 指纹一旦设置就无法更改.请记住,删除项目需要 7 天才能将其完全删除.

You cannot change the SHA1 fingerprint once it is set. Remember that deleting the project takes 7 days to completely remove it.

另一种选择是删除 debug.keystore 并生成一个新的:

Another option is to delete the debug.keystore and generate a new one with:

keytool -genkey -v -keystore debug.keystore -alias androiddebugkey
-storepass android -keypass android -keyalg RSA -validity 14000

请记住,您必须卸载该应用程序,否则会出现 [INSTALL_FAILED_UPDATE_INCOMPATIBLE] 错误.

Remember you have to uninstall the app otherwise you get the [INSTALL_FAILED_UPDATE_INCOMPATIBLE] error.

这篇关于您指定的签名指纹已被另一个 Android OAuth2 客户端使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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