【发布时间】:2017-08-02 14:43:20
【问题描述】:
【问题讨论】:
-
尝试清理项目。
标签: android firebase firebase-realtime-database firebase-authentication
【问题讨论】:
标签: android firebase firebase-realtime-database firebase-authentication
您应该从应用程序将其添加到您的 build.gradle 中。
buildscript {
// ...
dependencies {
// ...
classpath 'com.google.gms:google-services:3.0.0'
}
}
然后,进入你的 app/build.gradle
apply plugin: 'com.android.application'
android {
// ...
}
dependencies {
// ...
compile 'com.google.firebase:firebase-core:10.2.1'
compile 'com.google.firebase:firebase-auth:10.2.1'
compile 'com.google.firebase:firebase-database:10.2.1'
// Getting a "Could not find" error? Make sure you have
// the latest Google Repository in the Android SDK manager
}
// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'
看看这个来自谷歌的帖子。 https://firebase.google.com/docs/android/setup
【讨论】: