Getting started with Firebase on Android (2022)

Firebase is Google’s mobile application development platform that helps you build, improve, and grow your app. In this article, we will “Getting started with Firebase on Android” by building a simple app. So without any further, discuss let’s get started.

Getting started with Firebase on Android

                     Hello, I’m Firebase

Step 1. Install Android Studio, Java JDK, and set up Android SDK with the latest version.

Step 2. Create a new Firebase demo project.

Getting started with Firebase on Android (2020)

Step 3. Before adding Firebase to the project. Make sure that your project follows this thing:

  • Targets API level 16 (Jelly Bean) or later & compile SDK Version 28 or later.
Getting started with Firebase on Android (2020)
  • Uses Gradle 4.1 or later.
Getting started with Firebase on Android (2020)
  • Uses Jetpack (AndroidX).
Getting started with Firebase on Android (2020)
  • com.android.tools.build:gradle v3.2.1 or later.
Getting started with Firebase on Android (2020)

Step 4. After Creating a new demo project then Sign up into Firebase using your google account.

Step 5. Create a Firebase project (Step 1 to 3)

Getting started with Firebase on Android (2020)
Getting started with Firebase on Android (2020)
Getting started with Firebase on Android (2020)
Getting started with Firebase on Android (2020)
Getting started with Firebase on Android (2020)

Step 6. Add Firebase to your Android App.

Getting started with Firebase on Android
  • Enter your project package name, nick name & signing certificate SHA-1.
Getting started with Firebase on Android (2020)
  • Copy package name from Android Studio.
  • Enter Debug signing certificate SHA-1 (optional).
Getting started with Firebase on Android (2020)
Getting started with Firebase on Android (2020)

Step 7. Click Register App and download config file and copy downloaded google-service.json and Paste in the firebase.

Getting started with Firebase on Android (2020)
Getting started with Firebase on Android

Step 8. Add classpath on project dependencies.

Getting started with Firebase on Android (2020)
Getting started with Firebase on Android (2020)

Step 9. Apply the Google Services in your module (app-level) Gradle file.

Getting started with Firebase on Android (2020)
Getting started with Firebase on Android (2020)

Step 10- Add dependencies on the App-level build.gradle.

Getting started with Firebase on Android (2020)
Getting started with Firebase on Android (2020)

Step 11 – Click Next.

Getting started with Firebase on Android

Step 12 – Set up a physical device or you can use an emulator to run your app to verify the installation.

Getting started with Firebase on Android

Step 13 – All setup is done. As you can see the Firebase console dashboard.

Getting started with Firebase on Android

Congrats! You’ve completed adding Firebase to your Android project.

Must Read:

In the featured tutorial, we will see how we can add Firebase service to the app like:

  • Set up to check user behavior with Analytics.
  • Set up a user authentication flow with Authentication.
  • Setup database to Store data such as user information with Realtime Database & Cloud Firestore. As well as how to Store files, like photos and videos, with Cloud Storage.
  • Send Firebase push notifications with Cloud Messaging.
  • Set Up Crashlytics to find out when and why your app is crashing.
  • More.

This Post Has 2 Comments

  1. Dong

    Hurrah, that’s what I was exploring for,
    what a information! present here
    at this website, thanks admin
    of this website.

Leave a Reply