10 Best and Simple Step to add Firebase in Android Studio Project

Abi Farhan
3 min readSep 2, 2022

--

Hello all, I hope you doing well.

For this section I will write about Firebase Authentication using email and password also using Google Account.

Let’s catch up 🔥🔥

  1. Open the Firebase console, go to the Google Firebase Console, the view should be like this.

2. Now we create the project, click the button “Create a project”, for this section there is 3 steps, let’s run thought it one by one

  • Step One : For this step you have to fill the name of your project, in this case I will create “Android Chapter Firebase”
  • Step Two : Enable Google Analytics and click “Continue Button”
  • Step Three : Choose “Default Account for Firebase” then click “Create Project”

3. Then you will be redirect to Firebase Landing Page

4. Create The Android Icon to make your Android Project

5. Fill the form, make sure the package name same as your package in Android Studio then click “Register App” button

6. After that, download google.service.json to attach it to your Android Studio Project, we will do it later, for now just focus to finishing our set up for Firebase Service. now click “Next” button.

7. Now Add the Firebase SDK to your gradle at project level and app level, to make easier I will put the chunk of code here.

  • For gradle level project
  • For gradle level app

8. after that click “next” and continue to console and your project already there.

9. Very nice, we almost finish the integration Firebase with your android project, now open the directory where the google-service.json is downloaded.

Google-Servise.json file

copy the file and paste to “app” directory

10. Then sync your project and wait it until finished, Congratulations!!

--

--

Abi Farhan

Professional Android Developer, Software Developer. Photography Enthusiast