0

enter image description here

When I'm clicking on Install Repository and sync project link then nothing happens.

Vishal Vaishnav
  • 3,346
  • 3
  • 26
  • 57
Umair
  • 585
  • 3
  • 9
  • 21

2 Answers2

3

You need to add this:

 maven { url "https://maven.google.com" }

to project level build.gradle file look like this:

allprojects {
    repositories {
        jcenter()
        maven { url "https://maven.google.com" }
    }
}

The support libraries are now available through Google's Maven repository. We no longer support downloading the libraries through the SDK Manager, and that functionality will be removed soon.

More details see here.

Edit: Also update your support library versions to 26.0.1 along with compileSdkVersion to 26 and buildToolsVersion to 26.0.1

Nongthonbam Tonthoi
  • 12,667
  • 7
  • 37
  • 64
0

Have you put this line in your app level gradle file? classpath 'com.google.gms:google-services:3.0.0'

Let's help
  • 225
  • 2
  • 3
  • yes I have added this line – Umair Sep 26 '17 at 09:22
  • Add that previously mentioned line in project level gradle file and compile 'com.google.android.gms:play-services:10.2.0' this one in app level gradle file Try this once ... – Let's help Sep 28 '17 at 06:46