我正在尝试使用电话号码在Android上使用Firebase进行身份验证,其第二步是将Firebase身份验证的依赖项添加到您的应用级build.gradle文件中:
compile 'com.google.firebase:firebase-auth:11.0.0'
<br>after adding it , I try to sync project with Gradle Files
and it showing error<br>Error:Failed to resolve: com.google.firebase:firebase-core:11.0.0
<a href="openFile:/project/Mobileveridacetion/app/build.gradle">Open File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a><br>Error:(26, 13) Failed to resolve: com.google.firebase:firebase-auth:11.0.0
<a href="openFile:/project/Mobileveridacetion/app/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
答案 0 :(得分:10)
转到工具&gt; Android&gt; SDK Manager 点击 SDK工具并将以下内容更新为其修订号:
答案 1 :(得分:5)
只需转到SDK管理器并更新您的Google信息库。 它会工作。 :)