Sean
Sean

Reputation: 3095

how to change Firebase project in Android Studio module

My android project initially was connect to a Firebase project. I need to connect the app to a different project.

I use the "Firebase Assistant" and it kept on complaining:

The app is already connected to a project "xxx". 
Click "Sync" to update the configuration info
Additional Info: 
Package Name: "xxxxx" 
SHA1: "xxxxx"

If I create a brand new AS project just to test it out, the new AS project does give me choices to pick the old or the new one.

I have tried many ways, manually download the google-service.json file, or tried to clean as much as I can from build, etc. But somehow my Android studio project still not allow me to choose the new Firebase Project I setup in console.

Please share any tips to achieve my goal, and thanks for your help in advance.

Upvotes: 8

Views: 4595

Answers (1)

amzer
amzer

Reputation: 650

I came across this issue and I managed to solve it by deleting the google-services.json file and then initiating the connect to firebase method again.

Upvotes: 1

Related Questions