Gradle build fails looking for Google Play Services in Android Studio - is my SDK correct?

EnduroDave

I have a question very similar to Gradle build fails looking for Google Play Services in Android Studio

I have a working android project but when I add

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

I get a gradle build error

Error:Failed to find: com.google.android.gms:play-services:5.2.8
<a href="openFile">Open File</a><br><a href="open.dependency.in.project.structure">Open in Project Structure dialog</a>

I have added the SDKs through the manager. Other threads have suggested that there might be a second SDK library on the computer causing the issue, but I have not been able to resolve this. I am using a mac (and normally a PC user so please bear with me) and looking at the SDK manager and the project structure dialog both say the SDK is located at:

/Applications/Android Studio.app/sdk

Given they are pointing to the same place it must be some other cause of the error?

Maybe I have a version other than 5.2.8 (although unlikely, as andoid studio says this is the most up to date and I have just updated the SDK)? How can I check the version installed on my machine - its not in the file names?

EnduroDave

OK so it looks as though my version number was off and thats all that was causing the problem. If anyone else has this issue check your version number in the AndroidManifest.xml file in the google_play_services_lib directory

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Gradle build fails looking for Google Play Services in Android Studio

From Dev

Android: ANT build fails with google-play-services-lib: "resolve to a path with no project.properties file for project"

From Dev

Add Google Play Services to Android Studio using Gradle

From Dev

Android Studio Google Play Services no autocomplete

From Dev

Import Google Play Services library in Android Studio

From Dev

Making Google Play Services 4.0.30 work with Android Studio 0.4.2 & Gradle 0.7

From Dev

Android Studio AdMob Integration With Google Play Services

From Dev

Adding Google Play Services to non-gradle Android Studio project?

From Dev

Compilation Issue in Android Studio with Google Play Services

From Dev

Can't build with gradle when Google Play Services added as dependency

From Dev

Android Studio Build failed when using Google Play services for AdMob

From Dev

Android Studio with Google Play: Google Play services is missing

From Dev

Google Play Services Version for Android Studio

From Dev

My gradle build fails when I add compile 'com.google.android.gms:play-services-wearable:6.5.87'

From Dev

Android Studio Gradle fails to build

From Dev

Android Studio: cannot upgrade google play services

From Dev

Android Studio can't find my Google Play Services

From Dev

Adding Google Play Services to gradle (Android Studio) does not work

From Dev

Failed to build Android project with Google Play services

From Dev

Add Google Play Services to Android Studio using Gradle

From Dev

Making Google Play Services 4.0.30 work with Android Studio 0.4.2 & Gradle 0.7

From Dev

Android Studio AdMob Integration With Google Play Services

From Dev

Adding Google Play Services to non-gradle Android Studio project?

From Dev

Implementing Google ads via Android-Studio and the 'New' Google Play Services SDK

From Dev

Gradle build fails in Android Studio

From Dev

Can't build with gradle when Google Play Services added as dependency

From Dev

Build gradle failed for google play services version

From Dev

Failed to build Android project with Google Play services

From Dev

Google play services Conflict in Android Studio 2.1.2

Related Related

  1. 1

    Gradle build fails looking for Google Play Services in Android Studio

  2. 2

    Android: ANT build fails with google-play-services-lib: "resolve to a path with no project.properties file for project"

  3. 3

    Add Google Play Services to Android Studio using Gradle

  4. 4

    Android Studio Google Play Services no autocomplete

  5. 5

    Import Google Play Services library in Android Studio

  6. 6

    Making Google Play Services 4.0.30 work with Android Studio 0.4.2 & Gradle 0.7

  7. 7

    Android Studio AdMob Integration With Google Play Services

  8. 8

    Adding Google Play Services to non-gradle Android Studio project?

  9. 9

    Compilation Issue in Android Studio with Google Play Services

  10. 10

    Can't build with gradle when Google Play Services added as dependency

  11. 11

    Android Studio Build failed when using Google Play services for AdMob

  12. 12

    Android Studio with Google Play: Google Play services is missing

  13. 13

    Google Play Services Version for Android Studio

  14. 14

    My gradle build fails when I add compile 'com.google.android.gms:play-services-wearable:6.5.87'

  15. 15

    Android Studio Gradle fails to build

  16. 16

    Android Studio: cannot upgrade google play services

  17. 17

    Android Studio can't find my Google Play Services

  18. 18

    Adding Google Play Services to gradle (Android Studio) does not work

  19. 19

    Failed to build Android project with Google Play services

  20. 20

    Add Google Play Services to Android Studio using Gradle

  21. 21

    Making Google Play Services 4.0.30 work with Android Studio 0.4.2 & Gradle 0.7

  22. 22

    Android Studio AdMob Integration With Google Play Services

  23. 23

    Adding Google Play Services to non-gradle Android Studio project?

  24. 24

    Implementing Google ads via Android-Studio and the 'New' Google Play Services SDK

  25. 25

    Gradle build fails in Android Studio

  26. 26

    Can't build with gradle when Google Play Services added as dependency

  27. 27

    Build gradle failed for google play services version

  28. 28

    Failed to build Android project with Google Play services

  29. 29

    Google play services Conflict in Android Studio 2.1.2

HotTag

Archive