How to add Firebase-storage in Android Studio 2.2.2

Step1: In AndroidStudio(AS) insert tools by SDK tools:

Step2: Create New Project in https://console.firebase.google.com/:

Step3: In Overview > Select “Add Firebase to your Android app” :

Step4: Insert package name by your applicationId in build.gradle(Module:app) file. In this my example is: “com.example.firebase_example”

Step5: Get “Debug signing certificate SHA-1“:

    5.1: In windows, press windows + R > type .android> OK:

    5.2: In folder .android > Right-clicks in debug.keystore > select SHA-1:
    

5.3: Get this String then insert into “Debug signing certificate SHA-1

Step6: Download google-services.json then put in project:

Step7: in project > build.gradle insert code: classpath ‘com.google.gms:google-service:3.0.0’ > then click Sync Now:

Step8: in Project > app > build.gradle insert code in line 29 and 32 > then click Sync Now

NOTE: Check latest version in step9 for insert code in line 29

Step9: Looking for latest version for Firebase-Storage:

FINISH

NOTE: if you want to use other Firebase (ex: core, database, messaging, …) you can change in line 29 by “Gradle Dependency Line” in step 9.

Thanks.

LightBringer

Advertisements

One thought on “How to add Firebase-storage in Android Studio 2.2.2

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s