I'm developing a flutter app, which needs at least 2 projects for 2 different environments (development and production). My flutter app is already bound to a project, and when I tried creating another firebase project and adding the flutter app to the new project, after filling the package name and SHA, it says that OAuth2 client already exists for this package name and SHA-1 in another project, which probably refers to my first project. I'm a bit confused as to how should I start configuring the second project, I've tried going to the Firebase documentation, but the guide for android application starts with google-services.json which is only available to download after an application has been added to a firebase project. Any help would be greatly appreciated :D
Related
I have a project available in cloud.developer.com. I realized that i didn't migrated this project to Firebase.
I have accidentally created a new Firebase project one year ago, and used this in production.
Now, i realized some of third party libraries(for using analytics) use the google project number of the project which is available in cloud.developer.com. Thus i MUST now migrate my application available in cloud.developer.com to Firebase. I migrated it. So there are 2 Firebase projects which has the same package name in my account. I cannot delete neither of them because both of them is used in prod. I used google-services.json of the firebase project which i migrated from cloud.developer.com however Firebase integration is unsuccesfull.
Is there a restriction for using 2 different firebase project with same package name?
Hi i am writing a script which created apk dynamically from scripts as i have package name manually on firebase Console for the apk which are created from my system.Can any body suggest how to add app dynamically in my project using CLI
There are currently no CLIs or tools for adding an app programmatically to a Firebase project. However, there is new REST API for creating and modifying projects and apps within it. You will need to learn the Firebase Management API, which is in beta. To create a new Android app in the project, you will need to call the androidApps endpoint.
Using android studio, I created an app and linked it to a Firebase project.
I opened the app on my android studio recently and discovered it wasn't linked to my Firebase project any longer. I checked the Firebase console and saw that the app was still connected. However, it's still not reflecting in my android studio.
When I try to connect my app to Firebase (afresh), I can clearly see my Firebase project as one of the options (with one app connected ==> my app).
In summary, how do I reconnect an app to firebase?
I have tried restarting my android studio, cleaning the project, invalidating cache and restarting.
As long as there is no external tampering with an android studio project, an android app would always remain connected to Firebase.
I was able to solve this problem by signing out of all my Google accounts and then signing in with the account associated with the project. All I had to do after was attempt to reconnect again and kAbOoM, it worked fine.
There are two extra checkers/fixes I'd recommend to anyone that runs into this problem:
Check whether the google-services.json file exists. It's usually in the /app directory of android projects. If this file does not exist, it means the app is not connected to any Firebase project. One can then proceed to connect one's app to Firebase either manually or on the android-studio IDE. If the file exists, proceed to 2.
Dependencies: A lot of Firebase-type problems stem from dependency issues. Ensure the following:
Avoid version conflicts Ensure that all dependencies are up-to-date Take warnings seriously, they are like seedling-errors
I hope this helps other people who might run into this error.. Merry coding!
Hi i'm beginner for android studio and Firebase,I have done one small Firebase project. In this project i get Url from firebase console site when i add my project package name. My question is it possible to use one firebase project url to another (different package name )new project. If possible means pleas guide me..
Add two Android apps to your Firebase project, download the google-services.json and add it to both Android Studio project. I do this all the time and it works without problems for me.
If you are having problems, describe what you've tried and where it fails.
So, I've basically created a new project in Android, with nothing but the blank sample activity. I right click the project folder and chose "Add App Engine Backend". I supply it with the key and project number for the project on Google Cloud. When I'm done creating it I'm prompty met with this error.
"There was a problem generating the API metadata for your Cloud Endpoints classes: com.google.api.server.spi.tools.ClientLibGenerator$Language"
Any ideas?
Edit:
Here's what I've tried so far:
Delete the project, restart the computer and create it again.
Downgrade to Google Plugin 3.8/4.2 for Eclipse from 4.3.
Create the project as an App Engine Connected Project.
I get the exact same error every time, wether or not I'm giving out the key and project number. I have no idea of what I'm doing wrong.
Switched from app engine sdk 1.9.4 to 1.9.3 and it worked like a charm.