Installation of Firebase in Android Studio

Asked

Viewed 676 times

4

I was watching a video about installing Firebase and it says to go into: File > Project Structure, and open this image window:

video

However, the next step is to click Cloud, but when I enter Project Struture, the following window appears, without the Cloud:

tela

There is another location to set this up?

  • I have researched elsewhere but always the installation process is this

  • this course helped me a lot, https://www.udacity.com/course/firebase-in-a-weekend-by-google-android--ud0352?product=5483321653723136&_ga=1.33938472.843565695.1438022865%3Futm_source%3Dblog&utm_medium=referral&utm_Campaign=sb_widget_enroll

  • I’ll take a look, thanks

2 answers

3

The Cloud tab (which contains a checkbox to add Firebase to a project) has been removed in Android Studio 2.2.

Android Studio 2.2 has a full wizard to help you integrate Firebase. You can find it in Tools > Firebase.

Here is a link to help you add Firebase: Quickstart with Firebase

2


This video is old. In the same place where you use libraries, paste:

    dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:24.2.1'
    compile 'com.android.support:design:24.2.1'
    compile 'com.android.support:support-v4:24.2.1'
    compile 'com.android.support:cardview-v7:24.2.1'
    compile 'com.android.support:recyclerview-v7:24.2.1'

    compile "com.google.firebase:firebase-database:9.4.0"// banco
    compile 'com.google.firebase:firebase-auth:9.4.0' // autenticador 
    compile 'com.google.firebase:firebase-storage:9.4.0' //arquivos

    testCompile 'junit:junit:4.12'

}

apply plugin: 'com.google.gms.google-services' // esse

Another Gradle, use:

    buildscript {
        repositories {
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:2.2.2'
            classpath 'com.google.gms:google-services:3.0.0' // esse

        }
    }

Then just start using...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.