Android 错误:未能解析:com.google.firebase:firebase核心:11.0.0
我正在尝试使用电话号码在Android上使用Firebase实现身份验证,其第二步是将Firebase身份验证的依赖项添加到应用程序级build.gradle文件中:Android 错误:未能解析:com.google.firebase:firebase核心:11.0.0,android,firebase,firebase-authentication,Android,Firebase,Firebase Authentication,我正在尝试使用电话号码在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 r
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>
编译'com.google.firebase:firebase auth:11.0.0'
添加后,我尝试将项目与Gradle文件同步
并显示错误
错误:未能解析:com.google.firebase:firebase core:11.0.0
错误:(26,13)解析失败:com.google.firebase:firebase auth:11.0.0
只需转到SDK管理器并更新您的Google存储库。
它会起作用的。:) 进入工具>Android>SDK管理器点击SDK工具并将以下内容更新为其修订号:
- 谷歌存储库(修订版:53)
- Android SDK平台工具(修订版:26.0.0)
https://maven.google.com
继续。