0

I'm trying to install the google-play-services via android studios sdk-manager. Which says it successfully downloaded them: enter image description here

But if Im looking in my android folder there is nothing installed enter image description here

Also my cordova android is failing because no google-play-service can be found. But even the online look-ups are returning 404 when called. I have no idea how to fix them enter image description here

My build.gradle looks the like followingenter image description here

Rubick
  • 296
  • 3
  • 22
Sven
  • 357
  • 4
  • 10
  • 1
    does your top-level `build.gradle` contains a reference to the `google()` repo or to `maven { url "https://maven.google.com" }` ? – Saurabh Aug 15 '18 at 13:21
  • check my answer to the other similar question https://stackoverflow.com/questions/51285271/gradle-and-plugin-update-gives-error-in-android-studio/51300426#51300426 – shizhen Aug 16 '18 at 03:36
  • i added the build.gradle, it seems like i already did what you answered in the other question. my gradle-wrapper.properties also looks fine `distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists ` – Sven Aug 16 '18 at 07:33

1 Answers1

2

Make sure your top-level build.gradle file has the following

buildscript {
    repositories {
        google()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
}
Zachary Sweigart
  • 1,051
  • 9
  • 23