freeCodeCamp/guide/english/android-development/firebase/firebase-storage/setup/index.md

1.8 KiB

title
Setting up Firebase Storage

Setting up Firebase Storage

Prerequisites

  1. The latest version of Android Studio
  2. Have connected with Firebase manually or via Firebase Assistant (See Connecting to Firebase).

It is recommended that you do this so as to not be confused by partial instructions related to this in the docs mentioned below.

Setting it up with Android Studio

After adding Firebase to your project, you will need to add extra dependencies and do some other things in order to setup the Firebase Storage. There are following documentation about this:

If you are new to firebase, you may find it a little hard to understand. So follow the steps below carefully:

Add Gradle Dependencies

In your app-level build.gradle file, add the following

dependencies {
	implementation 'com.google.firebase:firebase-storage:16.0.2'
}

Installation of Firebase Android SDK, permissions and setup code

Detailed instructions for these can be found here.

Resources

To learn about how to read from and write to the storage in your Android application, refer to the docs listed below.

Sample Projects from Firebase Developers

You can follow up these samples from Firebase developers to get started Firebase storage Firebase Quickstart-Android android-sample

Note

Google now deprecated 'compile' and in place of that you need to use 'implementation'.