How to connect Firebase to Android Studio | Manually

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey developers how's it going in this video we are going to set up firebase to use firebase authentication in this video we will only set up the firebase and in the future videos we will be using this setup to use firebase authentication and another services provided by firebase so let's get started [Music] what is firebase firebase is a product by google which offers some tools for tracking analytics reporting and fixing app crashes and it also provides back-end services like authentication real-time database cloud storage for creating mobile and web applications which helps to accelerate the development process in this video we will only focus on authentication service provided by firebase and we will set up our firebase to use that service only open up your android studio now we have to create a new project so go to file new new project from the template select empty activity and click on next give your project a name i am giving the project name as firebase authlearn you can give anything you want to and click on finish wait for android studios to finish the build there are two ways in which you can add firebase to your project the first one is using firebase assistant which you can find in tools firebase the assistant will do all the hard work for you from adding dependencies to adding google service file but i don't prefer using firebase assistant because sometimes it requires a bit of additional configurations to be done and sometimes it doesn't work so i don't prefer using firebase assistant instead i prefer adding firebase to the project manually to to add firebase to the project manually open up your browser and search for firebase console open the firebase website and in the website click on go to console now click on create project here enter your project name you can name it anything here it is asking to add google analytics to the project but we will not add google analytics now because we don't require it now click on create project and wait for few minutes for firebase to complete the build here click on continue here you can see there are three icons ios android and web and another of unity as we are building an android project click on android here it is asking to fill up the form to link the project the first block is asking for the company app name you can find it in the gradle module file in the default config the application id is the project name copy it and paste it in the second block it is asking to give your project a nickname if you want to you can give it or you can leave it the third block is asking for one key it is required to use some firebase features like google sign-in methods to generate char one key press the gradle icon at the top corner of the android studio from the gradle window click on the execute task and in the run anything window types signing report and click enter it will start generating the sizing report and in the signing report you can find your one key from here copy it and paste it uh don't copy any white spaces at the front or back or else it is but not allowed to register the app now click on register app now download the google service.json file this file contains many important data like keys go to the download location of the file and from there copy the file now open android studio and change the project view to project go to app and in the app is the file now it's time to add the dependencies to the project first we will add the dependencies to the apple level gradle file change the project view to android again and open the app level credit file first we have the google in the build scripts and the class parts we don't have the class path so we'll copy and paste it now in the all projects we have the google library added that's all for app level gradle file now open the project level credit file and apply the plugin [Music] and add the file with bom dependencies now click on the sync project firebase bom helps you to manage the versions of all the products of the firebase that you are using in your project when you are using multiple products from firebase in your project you have to manage the versions of all the products manually firebase form manages the version of all the firebase products so that you don't have to manually manage the product version the firebase android bomb enables you to manage all the firebase library version by specifying only one version the bom version when you use the firebase bom in your app the bom automatically pulls the individual library versions map to bomb version all the individual library versions will be compatible
Info
Channel: Geek Aid
Views: 1,538
Rating: undefined out of 5
Keywords: How to connect firebase to android studio manually, Firebase android studio tutorial, connect you android app with firebase, firebase setup tutorial, how to setup firebase manually, how to generate signingreport, how to get sha-1 key android studio, how to setup firebase to use firebase authentication, what is firebase bom, firebase android tutorial, add firebase to your android app
Id: 7eXthKkknqE
Channel Id: undefined
Length: 7min 4sec (424 seconds)
Published: Sun Aug 01 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.