当我尝试添加compile "com.google.firebase:firebase-auth:9.0.2"
时
在我的build.gradle(app)中
它显示以下错误
Error:Failed to resolve: com.google.firebase:firebase-auth:9.0.2
<a href="openFile:/home/admin/Downloads/ZaakItPartner/app/build.gradle">Open File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
注意:我已更新了我的Google Play服务。
答案 0 :(得分:1)
最后我得到了
需要更新: Google Play服务(第30版)和Google存储库(第26版)
build.gradle(app):
dependencies { compile "com.google.firebase:firebase-auth:9.0.2"}
apply plugin: 'com.google.gms.google-services'
build.gradle(项目):
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}