1.6 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.6 KiB
		
	
	
	
	
	
	
	
title
| title | 
|---|
| connecting-to-firebase | 
Prerequisites
- The Latest Version of Android Studio
The easiest way to connect to firebase is to use the firebase assistant.
1. Connecting using Firebase Assistant
- 
Create an account in the Firebase Console. Click add project to add your Android Studio project to it. 
- 
Install Google Repository You can do this by adding the dependency into your project-level build.gradle file like this: 
allprojects{
  repositories {
        maven {
            url "https://maven.google.com" // Google's Maven repository
        }
    }
}
Alternatively, you could do that using the GUI.
- Go to Tools > Firebase and select Connect to Firebase
If you wish to connect to firebase manually, detailed instructions are available here.
Having connected your Android Studio project to Firebase, you can either
- click on a product in the firebase assistant and get taken to the Google docs where you will be told how to proceed
- go to desired product in Project Overview in the Console and click on Get Started
- go to the Firebase docs to see how to setup individual products in your project
Reading a combination of all three will enable you to setup the product, which includes adding suitable dependencies to your build.gradle file.
If You Encounter Gradle Sync Try To Change The Firebase-core Version or Firebase-database version