We have created the Android Studio application with a blank activity in it. If you are using Android Studio 2.2 or any later versions, use the Firebase Assistant to connect your app to Firebase. The Assistant will help you to connect to an existing Firebase project or create a new one. It will also install all the necessary Gradle dependencies. In addition to this, we can manually add the Firebase project.
If you don't find the Firebase Assistant under your Tools section, go to File | Settings | Build, Execution and Deployment | Required Plugins and add Firebase Services. Alternatively, you can manually add it by following these steps: