Menu

Android Error: Failed to resolve: com.google.firebase

Android, Exceptions By Oct 15, 2018 No Comments
[Android Studio]

Issue:

I updated gradle to 4.4 in my Android app and added below firebase libraries to my app level build.gradle file

implementation 'com.google.firebase:firebase-core:16.0.0'
but while building the project, got the below error
Failed to resolve: com.google.firebase:firebase-core:16.0.0

Solution:

This is a maven issue. This issue is resolved after adding google() to repositories of allporjects in project level build.gradle file. Now the json looks like below.
allprojects {
repositories {
google()
jcenter()
}
}

No Comments

Leave a comment

Hi, Welcome here.
JOIN OUR NEWSLETTER
And get notified everytime we publish a new blog post.