Skip to content
01eg.me edited this page Jan 26, 2018 · 1 revision

Writing your own Instagram on Kotlin

Add Firebase to Your Android Project

Prerequisites

  • A device running Android 4.0 (Ice Cream Sandwich) or newer, and Google Play services 11.8.0 or higher The latest version of Android Studio
  • If you don't have an Android Studio project already, you can download one of our quickstart samples if you just want to try a Firebase feature. If you're using a quickstart, remember to get the application ID from the build.gradle file in your project's module folder (typically app/), as you'll need this package name for the next step.

Note: If you are upgrading from a 2.X version of the Firebase SDK, see our upgrade guide for Android to get started.

Configure Firebase

To add Firebase to your app you'll need a Firebase project and a Firebase configuration file for your app.

  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/.
Clone this wiki locally