Add Firebase to Android App (Part 1)

Satyam Gondhale
Mar 5 · 3 min read
(Image Source https://scotch.io/bar-talk/a-look-at-the-new-firebase-a-powerful-google-platform)

What is Firebase ?

  1. Firebase is a platform developed by Google for creating mobile and web applications😀

But, to use all this amazing Services for our App, first we need to add Firebase Service to our App. Let’s do it🤩

Steps to Add Firebase to Android App

  1. Go to Firebase Console, and Add Project. Give a name to Project (I have use remote config demo for demonstration, you can use any)

2. Add Package name from your AndroidManifest.xml, you can give any Nick Name

3. Download google-services.json to obtain your Firebase Android config file & move your config file into the module (app-level) directory of your app

4. To enable Firebase products in your app, add the google-services plugin to your Gradle files. In your root-level (project-level) Gradle file build.gradle, add rules to include the Google Services Gradle plugin

5. In your module (app-level) Gradle file (usually app/build.gradle), apply the Google Services Gradle plugin

6. Using the Firebase Android BoM, declare the dependencies for the Firebase Products, that you want to use in your app. Declare them in your module (app-level) Gradle file (usually app/build.gradle).

7. Sync your app to ensure that all dependencies have the necessary versions(Wait till creating Project & you are done.)

8. After successful creation of project, you will see the Dashboard as

Thanks for your valuable read to article. Last thing, if you feel it helpful, Please SHARE 📤 & do give CLAPS 👏👏.

Nerd For Tech

From Confusion to Clarification

Nerd For Tech

NFT is an Educational Media House. Our mission is to bring the invaluable knowledge and experiences of experts from all over the world to the novice. To know more about us, visit https://www.nerdfortech.org/.

Satyam Gondhale

Written by

Member of Technical Staff at Walnut (a Capital Float Company)

Nerd For Tech

NFT is an Educational Media House. Our mission is to bring the invaluable knowledge and experiences of experts from all over the world to the novice. To know more about us, visit https://www.nerdfortech.org/.