Error:(23, 13) Failed to resolve: com.google.android.gms:play-services:11.2.0 "Install Repository and sync project" dose not work -


i trying location , update server in android app. gradle code, here included compile 'com.google.android.gms:play-services:11.2.0'. line from documentation:

dependencies {     compile 'com.google.android.gms:play-services:11.2.0'      compile 'com.android.support:appcompat-v7:25.3.1'     compile 'com.android.support:design:25.3.1'     compile 'com.android.support.constraint:constraint-layout:1.0.2'     compile 'com.android.support:support-v4:25.3.1'  } 

but error get:

error:(23, 13) failed resolve: com.google.android.gms:play-services:11.2.0 install repository , sync project show in file show in project structure dialog 

clicking in "install repository , sync project" doesn't work.

add project-level build.gradle file:

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

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -