简体   繁体   English

使用 Android Studio 登录 Firebase

[英]Firebase with Android Studio Log in

I still don't know why I am getting this error.我仍然不知道为什么我会收到此错误。 I already add all the dependencies and Files to my android studio project.我已经将所有依赖项和文件添加到我的 android studio 项目中。

This is my root/build.gradle这是我的 root/build.gradle

    buildscript {    

repositories {
    google()
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.0.1'
    classpath 'com.google.gms:google-services:3.2.0'
}

this is my root/app/build.gradle:这是我的 root/app/build.gradle:

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:26.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation 'com.android.support:multidex:1.0.1'
implementation 'com.google.firebase:firebase-core:11.8.0'
 }
apply plugin: 'com.google.gms.google-services'

And this is the Error: Notice that I have the google json right where it has to be这是错误:请注意,我将 google json 放在了它必须的位置

请注意,我将 google json 放在了该位置

I don't quiet understand what you are trying to do?我不明白你想做什么? Are you just trying to connect to Firebase and you are not able to?您是否只是尝试连接到 Firebase 而无法连接? To use the authentication or what?要使用身份验证还是什么?

1- Have you tried tools -> Fire base and following those steps? 1- 您是否尝试过工具 -> Fire base 并遵循这些步骤? It will automate everything for you.它将为您自动化一切。 As I see in your screen shot just press "connect to firebase" and "Add Cloud Storage"正如我在您的屏幕截图中看到的,只需按“连接到 Firebase”和“添加云存储”

2- Do you already have a firebase account and project so you can connect to it? 2- 您是否已经拥有 firebase 帐户和项目以便可以连接到它?

Can you explain a bit more what do you mean by "Firebase with Android Studio Log in" ?!你能解释一下“使用 Android Studio 登录的 Firebase”是什么意思吗?!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM