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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -