How to Connect your Android studio project to Firebase

In this tutorial, you will learn how to connect your Android project in Android studio to firebase so you can be able to integrate Firebase features like Authentication, Cloud Firestore, App distributions, Test Lab, Cloud storage, etc.

Getting started

Follow the guide below to set up your project in Android studio

Goto Tools -> click you will see the dropdown in the image below then click on “Firebase”.

It will open the image below, you will see all the Firebase packages available in Android Studio and select the one you want to work with.

It will open the below image, you have two important steps to follow
1: Connect your app to Firebase
2: Add Cloud Firestore to your app
NOTE: login your Gmail details in your Android Studio first before proceeding to the next step.
Click “Connect to Firebase”, it will open the firebase console in your browser

The below image is giving you two options
1: Create a new project
2: Continue with an existing project
In this part, you will select “Add project”

The image below will give you an option to change the name of the project, then click “Continue”

For the image below just click “Continue”

Tick the checkboxes in this part

Just click “Continue”

It’s creating your project

your project is fully set up and ready for use, click “Continue”

Firebase is setting up your project

Now your project has been created in Firebase, click “Continue”

Now your Android Studio project is connected to Firebase

at this stage the project doesn’t support any Firebase package yet, you will need to configure it later.

Thanks for reading my article

Let’s connect on
Twitter: https://twitter.com/Joklinztech
LinkedIn: https://www.linkedin.com/in/wisdom-nwokocha-76212a77/

--

--

--

A software engineer with considerable experience in mobile development, native Android, and IOS development(Xcode), flutter dev, technical writing and community

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Using Azure AD B2C to Authenticate Android App Users

This image shows the log in form that is rendered by Azure Active Directory B2C in an Android web view.

Useful ADB commands

#FlutterWithSakshi -Part 4

How to create a project in Flutter and distribute it using AppCenter.

Android Development Cheatsheet

Why I Left Android Development, And Why I’m Returning Back Now

Story image

Flutter + Firebase + Spring Boot + Restfull + OAuth2: Tutorial Part 2

Immutable lists in presenter

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nwokocha Wisdom Maduabuchi

Nwokocha Wisdom Maduabuchi

A software engineer with considerable experience in mobile development, native Android, and IOS development(Xcode), flutter dev, technical writing and community

More from Medium

TDD — Part III, Hilt and Robolectric (Android)

Jetpack DataStore in Modern Android Development

Android App Development in Android Studio

Implementing Wallet Payments in Android Apps