Firebase Fiasco, 70 of 100 Days of Code
I almost set up Firebase for a project but I’m missing a directory.
You can find a video of this at the bottom of the page.
I created an empty Android app for learning Firebase. I figured a blank slate will be easier to start with.
I started by refactoring the project and moving it to a different folder on my hard drive. I saved it to the wrong folder by accident and wanted it in the right place before I got started.
After this I created the Firebase project, registered my app, and added the Firebase configuration file to the project.
The majority of this was done by logging into the Firebase console. From there, I had the option of creating the project and acquiring the files needed for my app to sync with the realtime database (click below)
I copied the necessary lines of code into the app module build.gradle file and synced the project. It appears I need to do the same thing with the root directory build.gradle file as well. The problem is, my app module is the only directory with a gradle file. (click below)
The setup is straightforward. Most of it is copying and pasting code or downloading files. It looks like I made a mistake while moving the app across directories. This caused some files to go missing in the process.
I’ll try again with a new empty project and this time, I won’t move anything. If I have the needed directories from the start, then I can try setting up Firebase again.
Join the mailing list to see updates like this every week!
Coding Fanatic