October 15, 2018

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

[Android Studio]


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

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 {

No comments:

Post a Comment