Getting started with Firebase for Android

Getting started with Firebase for Android

To add Firebase to your app you'll need a Firebase project and a Firebase configuration file for your app. When prompted, enter your app's ...

To add Firebase to your app you'll need a Firebase project and a Firebase configuration file for your app. When prompted, enter your app's . In my previous post, Firebase as a Backend, I briefly explained the features of Firebase and what benefits you can have if you use Firebase as your service base. Here, I will explain to you what are the initial steps you should take to start using Firebase for your applications.

Video Tutorial


  1. Go to
  2. Add Project (you could also import already existing Google Console Project). Creating project from Firebase console will also create Google Console Project automatically, so do keep in mind the limit of creating google console projects.   
  3. Out of these 3 options, you could choose any of them. For this post, I am going to choose, Add Firebase to your Android App.**
  4. Keep ready your package name, SHA1 is not mandatory.
  5. After you are done with Registering app you need to download google-services.json config file. This config file you need to put in the app folder of your Android application.
  6. The last step for setting up and linking up Firebase with your Android app would be to put the following lines in your Android project.

Add following line in dependencies of app module

compile ''

Add following code at the last of build.gradle for app module

apply plugin : ''

Add following code to dependencies of root-level build.gradle

classpath ''

Add following code to allprojects section in root-level build.gradle

repositories {
    maven {
       url ""

These above steps will now link your Firebase Project with Android project. If something does not work, try reinstalling the app. Next question which comes to mind is How to use Database, Storage, etc. in Android Application. For that, I have written separate posts on Database and Storage The following table shows which dependency you should add in order to use respective component.

Feel free to ask anything on Firebase. Do write in comments section below if you are already using Firebase and finding some issues.

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

ECommerce Mobile App Development | Ecommerce Mobile App Development Services

We are leading ecommerce mobile application development company. Hire our ecommerce mobile app developer for your custom Ecommerce project at competitive rates. **Know about [Top ECommerce Mobile App Development...

Top Mobile App Development Company in Washington

AppClues Studio is an experienced mobile app development company in Washington. We have an experienced team of mobile app developers who are proficient in developing mobile apps for Android & iOS using state-of-the-art mobile app development...

Mobile App development Company in Melbourne Australia

If you are seeking online **[mobile app development Melbourne Australia]( "mobile app development Melbourne Australia")**? Then Efrog Pty Ltd is the best online choice for you we are an award-winning company in Australia....