I want to put Google Maps on Android and get the error: "could not find depency com.google.android"

1

I have read and I have seen some videos on how to do it but the problem appears when I start to enter code, I get many errors. I have already installed the Google Play Services and the Google USB Driver but when I try to solve the errors and install what it asks me, I miss this error:

  

"could not find dependency com.google.android".

Can someone help me? Thank you very much.

I deleted the class, xml and everything that had to do with Google Maps and now I do not work on the project that previously worked for me. I also get this error when trying to compile it.

Error: Could not resolve all files for configuration ': app: debugCompileClasspath'.

  

Could not find com.google.android.gms: play-services-maps: 11.6.2.     Searched in the following locations:         file: / C: /Users/adminportatil/AppData/Local/Android/sdk/extras/m2repository/com/google/android/gms/play-services-maps/11.6.2/play-services-maps-11.6.2. pom         file: / C: /Users/adminportatil/AppData/Local/Android/sdk/extras/m2repository/com/google/android/gms/play-services-maps/11.6.2/play-services-maps-11.6.2. jar         file: / C: /Users/adminportatil/AppData/Local/Android/sdk/extras/google/m2repository/com/google/android/gms/play-services-maps/11.6.2/play-services-maps-11.6. 2.pom         file: / C: /Users/adminportatil/AppData/Local/Android/sdk/extras/google/m2repository/com/google/android/gms/play-services-maps/11.6.2/play-services-maps-11.6. 2.jar         file: / C: /Users/adminportatil/AppData/Local/Android/sdk/extras/android/m2repository/com/google/android/gms/play-services-maps/11.6.2/play-services-maps-11.6. 2.pom         file: / C: /Users/adminportatil/AppData/Local/Android/sdk/extras/android/m2repository/com/google/android/gms/play-services-maps/11.6.2/play-services-maps-11.6. 2.jar         file: / C: / Program Files / Android / Android Studio / gradle / m2repository / com / google / android / gms / play-services-maps / 11.6.2 / play-services-maps-11.6.2.pom         file: / C: / Program Files / Android / Android Studio / gradle / m2repository / com / google / android / gms / play-services-maps / 11.6.2 / play-services-maps-11.6.2.jar          link          link     Required by:         project: app

    
asked by Urtx 13.12.2017 в 12:10
source

1 answer

2

Actually the problem is Android Studio setup, in this case you need to update Android Support Repository from the SDK Manager.

When updating you probably need to update other components, but in the terminal you will add the link to make the pending updates.

    
answered by 13.12.2017 / 17:30
source