简体   繁体   English

使用android studio设置Firebase进行身份验证

[英]Setting up Firebase with android studio for authentication

I am trying to setup my android project with Firebase so that I can allow users to login and sign up for my app. 我正在尝试使用Firebase设置我的android项目,以便允许用户登录并注册我的应用。 I have connected my app to Firebase but when I try and add Firebase Authentication to my app I get the following error: 我已将我的应用程序连接到Firebase,但是当我尝试将Firebase身份验证添加到我的应用程序时,出现以下错误:

The library com.google.android.gms:play-services-base is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 16.0.1. 各种其他库都在[[15.0.1,15.0.1]]请求com.google.android.gms:play-services-base库,但解析为16.0.1。 Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies. 禁用插件,并使用./gradlew:app:dependencies检查您的依赖关系树。

Try updating both all the Play Services and Firebase libraries to the latest version. 尝试将所有Play Services和Firebase库都更新到最新版本。 For more information take a look at https://developers.google.com/android/guides/releases#may_23_2018 有关更多信息,请访问https://developers.google.com/android/guides/releases#may_23_2018

Hopefully this helps! 希望这会有所帮助!

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

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