小编Era*_*eer的帖子

FireBase与Android Studio同步失败

我尝试实现一个将有关您的详细信息放在Firebase中的数据库中的应用程序。

我使用Firebase Android Studio版本中网站上的代码进行同步:3.0.1该代码来自THIS

build.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'

        //you need to add this line
        classpath 'com.google.gms:google-services:3.2.0' // google-services plugin
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com" // Google's Maven repository
        }
    }
}

task clean(type: Delete) { …
Run Code Online (Sandbox Code Playgroud)

java android firebase android-studio

5
推荐指数
0
解决办法
611
查看次数

标签 统计

android ×1

android-studio ×1

firebase ×1

java ×1