======== Firebase ======== 1. Create a Firebase project in the Firebase console, if you don't already have one. If you already have an existing Google project associated with your mobile app, click Import Google Project. Otherwise, click Add project. 2. Click Add Firebase to your Android app and follow the setup steps. If you're importing an existing Google project, this may happen automatically and you can just download the config file. 3. When prompted, enter your app's package name. It's important to enter the package name your app is using; this can only be set when you add an app to your Firebase project. 4. At the end, you'll download a google-services.json file. You can download this file again at any time. 5. If you haven't done so already, copy this into your project's module folder, typically app/. .. code-block:: Groovy buildscript { dependencies { classpath 'com.google.gms:google-services:3.3.1' // google-services plugin } } allprojects { repositories { maven { url "https://maven.google.com" // Google's Maven repository } } } Then, in your module Gradle file (usually the app/build.gradle), add the apply plugin line at the bottom of the file to enable the Gradle plugin: .. code-block:: Groovy apply plugin: 'com.android.application' android { // ... } dependencies { // ... implementation 'com.google.firebase:firebase-core:15.0.2' // Getting a "Could not find" error? Make sure you have // added the Google maven respository to your root build.gradle } // ADD THIS AT THE BOTTOM apply plugin: 'com.google.gms.google-services' If you would like to integrate the Firebase libraries into one of your own projects, you need to perform a few basic tasks to prepare your Android Studio project. You may have already done this as part of adding Firebase to your app. First, add rules to your root-level build.gradle file, to include the google-services plugin and the Google's Maven repository: You should also add the dependencies for the Firebase SDKs you want to use. We recommend starting with com.google.firebase:firebase-core, which provides Google Analytics for Firebase functionality. See the list of available libraries. Share the Firebase project with the sysadmin for backend configuration.