D
D
DanielPo2022-03-03 17:36:41
android studio
DanielPo, 2022-03-03 17:36:41

How to add firebase sdk?

Good afternoon, I'm trying to add a database, but there was a problem, I don't understand where to add these lines?

spoiler
buildscript {
  repositories {
    // Check that you have the following line (if not, add it):
    google()  // Google's Maven repository

  }
  dependencies {

    // Add this line
    classpath 'com.google.gms:google-services:4.3.10'

  }
}

allprojects {

  repositories {
    // Check that you have the following line (if not, add it):
    google()  // Google's Maven repository

  }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Araya, 2022-03-03
@Araya

In build.gradle, project builder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question