android - Gradle build unable to compile when trying to add ads -


this question has answer here:

ok trying add ads application , tells me add line of code in build.gradle file.

error image:

error image

compile 'com.google.android.gms:play-services:11.2.0' 

as can see in image @ bottom says

  failed resolve:compile 'com.google.android.gms:play-services:11.2.0' 

i cannot click install repository , sync project because when nothing. not open windows or anything?

try adding

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

to project level gradle file


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -