Error: failed to execute: com.google.firebase: firebase-core: 11.0.0

I'm trying to implement Authenticate with Firebase on Android using a phone number, and its second step is to add the dependency for Firebase Authentication to my build.gradle file at the app level:

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>

      

+3


source to share


2 answers


Go to Tools> Android> SDK Manager , click SDK Tools and update their version number:



  • Google repository (version: 53)
  • Android Platform SDK for Platform (version: 26.0.0)
+11


source


Just go to SDK manager and update your google repository. This will work. :)



+5


source







All Articles