如何使用与另一个项目中使用的相同的SHA-1密钥创建Firebase项目? [英] How to create firebase project with the same SHA-1 key as used in another project?

查看:126
本文介绍了如何使用与另一个项目中使用的相同的SHA-1密钥创建Firebase项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用相同的SHA-1创建两个Firebase项目?因为我已经创建了一个Android项目,并且已安装的应用程序正在将该项目作为目标,现在由于某些原因,我需要为相同应用程序的较新版本使用另一个项目,因此两个Firebase项目的存在都是必需的。
但是我想知道如何用同样的SHA-1来做,因为它给了我错误,我找不到方法?

错误消息说:
$ b


一个OAuth2客户端已经存在这个包名称和另一个项目中的SHA-1


解决方案

仔细阅读错误信息。它表示它正在使用应用程序的包名称​​和 SHA-1。这意味着您可以在两个项目中使用相同的SHA-1,但是应用程序的包名称(也称为应用程序ID)必须不同。同样,可以有两个具有相同包名称的项目,但不能添加任何相同的SHA-1。



包名而SHA-1必须是唯一的。


Is it possible to create two Firebase projects with the same SHA-1? because I have an android project created already and the installed application are targeting that project, now for some reasons I need to use another project for the newer versions of the same applications so the existence of both firebase projects is necessary. But I wonder how would I do it with the same SHA-1 because it gives me error and I am not able to find a way?

The error message says:

An OAuth2 client already exists for this package name and SHA-1 in another project

解决方案

Read the error message carefully. It says it's using both the package name of the app and the SHA-1. This means you can have the same SHA-1 in two projects, but the package names of the app (also called "application id") must be different. Likewise, you can have two projects that have the same package name, but they can not have any of the same SHA-1 added to them.

The combination of package name and SHA-1 must be unique.

这篇关于如何使用与另一个项目中使用的相同的SHA-1密钥创建Firebase项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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