Skip to content Skip to sidebar Skip to footer

Fire Base And Google Play Services Can't Resolve Exception

I'm trying to build my application with the following gradle file: apply plugin: 'com.android.application' android { compileSdkVersion 27 buildToolsVersion '28.0.0 rc1' defaultCo

Solution 1:

For reasons unknown to me, google() must appear before jcenter() in the list of repositories, as is shown in the documentation.

buildscript {
    repositories {
        google() // <== CHANGED
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.3'
        classpath 'com.google.gms:google-services:4.0.1'
    }
}

allprojects {
    repositories {
        google() // <= CHANGED
        jcenter()
        maven { url 'https://jitpack.io' }
        maven { url 'https://maven.google.com' }
        maven { url "https://dl.bintray.com/krazykira/maven" }
    }
}

Post a Comment for "Fire Base And Google Play Services Can't Resolve Exception"