user2522354
user2522354

Reputation:

Error:Failed to resolve: com.google.firebase:firebase-core:11.0.0

I am 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 your app-level build.gradle file:

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>

Upvotes: 3

Views: 3777

Answers (2)

Darush
Darush

Reputation: 12021

Go to Tools > Android > SDK Manager click on SDK Tools and update the following to their revision number :

  • Google Repository (revision: 53)
  • Android SDK Platform-Tools (revision: 26.0.0)

Upvotes: 10

Abhinav Masters
Abhinav Masters

Reputation: 71

Just go to SDK manager and update your Google Repository. It will work. :)

Upvotes: 5

Related Questions