Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Existing Android App Integration to Firebase

Pressing the following button is giving the error below the image.

enter image description here

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. 
Client Package Name: packagename
Client SHA1: [59:17:0C:D9:63:14:42:A5:81:13:20:F8:58:0F:96:D8:6A:65]

I could not find the Connect to an existing Project list mentioned in the error message.

I created the project in firebase by clicking "Import Google Project" button and selecting an existing google project. Later i tried adding both debug and production signature SHA1's but that did not help.

enter image description here

anyone faced the same issue?

EDIT: Today the existing project list dialog started appearing but i still get the error even if i select from the existing project list. I started thinking that this is a preview bug. :(

enter image description here

like image 726
mehmet6parmak Avatar asked May 22 '16 16:05

mehmet6parmak


People also ask

How do I connect my Android app to Firebase?

Open the Firebase Assistant: Tools > Firebase. In the Assistant pane, choose a Firebase product to add to your app. Expand its section, then click the tutorial link (for example, Analytics > Log an Analytics event). Click Connect to Firebase to connect your Android project with Firebase.

How do I add Firebase to an existing project?

Log in to the Firebase console, then click Add project. Select your existing Google Cloud project from the dropdown menu, then click Continue. (Optional) Enable Google Analytics for your project, then follow the prompts to select or create a Google Analytics account. Click Add Firebase.

How do I know if an app is connected to Firebase android?

If you want to know if the client is connected to the server before calling setValue() , you can attach a listener to . info/connected .


1 Answers

After "Import Google Project". Click Analytics->Click Android Icon and the following screen appears.

Put your app package name and SHA-1. Download google-services.json and move to your /app/ folder. (path-to-app/app/google-services.json).

It must work!

enter image description here

like image 199
ugur Avatar answered Oct 16 '22 05:10

ugur