Android Studio助手:无法将客户端添加到您的Firebase项目中 [英] Android Studio Assistant: No clients were able to be added to your Firebase project

查看:297
本文介绍了Android Studio助手:无法将客户端添加到您的Firebase项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android Studio中使用新的(Firebase)助手添加新服务时,出现此错误:


Firebase b
$ b

由于以下原因,无法将客户添加到您的Firebase项目中:
包名和SHA1的应用程序已连接到Google项目。如果您以前使用过Google API,请
在连接到现有项目列表中选择该项目。


Firebase控制台页面我已经选择了导入GOOGLE项目,然后我继续整合Firebase服务。但是,当我尝试使用Android Studio Firebase助手添加更多服务时,我收到了上述错误。



我找不到在连接到现有的项目列表任何地方?

解决方案

当前,Android Studio只能在创建新的Firebase项目时使用,并且不会更新现有的已连接Google项目。


$ b 在Firebase控制台页面上选择IMPORT GOOGLE PROJECTS时,它会自动生成在 Google开发者控制台页面上为项目凭证创建一个新的OAuth 2.0客户端ID。该项目有这样的现有凭据,所以也许有一些冲突吗?



删除这个新的自动生成凭证并创建一个新的项目,而不是解决与助理和消息的问题现在在Android Studio中:


Firebase

Firebase项目在本地创建并连接到模块:app。



When using the the new (Firebase) Assistant in Android Studio to add new services I get this error:

Firebase

No clients were able to be added to your Firebase project for the following reasons: An app with this package name and SHA1 is already connected to a Google project. If you have used a Google API previously, please select that project in the Connect to an existing Project list.

On the Firebase console page I had selected the option IMPORT GOOGLE PROJECTS and then I continued on integrating the Firebase Services. But when I try to use the Android Studio Firebase Assistant to add more services I get the error above.

And I can't find this "in the Connect to an existing Project list" anywhere?

解决方案

It looks like the Firebase assistant in Android Studio at the moment only works when creating new Firebase projects and not updating existing connected Google Projects.

When selecting the IMPORT GOOGLE PROJECTS on the Firebase console page, it did autogenerate a new OAuth 2.0 client ID for the project credentials on the Google Developer console page. The project had an existing credentials for this, so maybe some conflicts there?

Deleting this new autogenerate credentials and creating a new project instead fixed the issue with the assistant and the message in Android Studio is now:

Firebase

Firebase project created and connected locally to module: app.

这篇关于Android Studio助手:无法将客户端添加到您的Firebase项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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