Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 错误:未能解析:com.google.firebase:firebase核心:11.0.0_Android_Firebase_Firebase Authentication - Fatal编程技术网

Android 错误:未能解析:com.google.firebase:firebase核心:11.0.0

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

我正在尝试使用电话号码在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>
编译'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)

我怀疑您的gradle没有成功同步。尝试重新同步更新Google存储库。它起作用了。成功:)酷!干杯!:)别忘了接受答案:)这令人沮丧。我以为他们会使用新的
https://maven.google.com
继续。