Failed to resolve: com.google.firebase:firebase-core:9.0.0
Update Aug 2017
As of version 11.2.0
Firebase and Google Play services dependencies are available via Google's Maven Repo. You no longer need to use the Android SDK manager to import these dependencies.
In your root build.gradle
file add the repo:
allprojects {
repositories {
// ...
maven { url "https://maven.google.com" }
}
}
If you are using gradle 4.0
or higher you can replace maven { url "https://maven.google.com" }
with just google()
.
The 9.0.0
version of Firebase was built using Google Play services 9.0 and is now available under the new packaging com.google.firebase:*
See Release Notes for Google Play services 9.0 https://developers.google.com/android/guides/releases#may_2016_-_v90
New versions of packages Google Play Services (rev 30) and Google Repository (rev 26) were just released in the SDK manager so it's likely you just need to update.
Downloading Google Play Services and Google Repository
From Android Studio:
- Click
Tools
>Android
>SDK Manager
. - Click into the
SDK Tools
tab. - Select and install
Google Play Services
(rev 30) andGoogle Repository
(rev 26). See the image below. Sync
andBuild
your project.
From IntelliJ IDEA:
As of April 2017, the latest versions of Google Play Services and Repository are listed below.
- Click
Tools
>Android
>SDK Manager
. - Under the
Packages
panel, Look for theExtras
. - Select and install
Google Play Services
(rev 39) andGoogle Repository
(rev 46). See the image below. Perform a gradle project sync
andBuild
your project.
Go to Android SDK Manager and install the latest version of below two libraries
- Google Play Services
- Google Repository
Error:(30, 13) Failed to resolve: com.google.firebase:firebase-auth:9.6.1
If you ever get this error and you are using Android studio 2.2 that comes with firebase component integrated in it which has libraries version 9.6.0 by default and you are adding the latest dependencies like 9.6.1 . You might need to downgrade com.google.firebase:firebase-auth:9.6.1
to com.google.firebase:firebase-auth:9.6.0
Or check the library version of your pre-installed firebase and make sure it is of the same version with the new library you are trying to add or added to your project.