Android Studio utility will import Google Play Services project update

I am currently trying to import google play services for my android project which is being built using Android Studio. Now I have read the part where I have to start from here and since this one is still using Eclipse I ended up in these steps. Now, after adding Google Play Services to my app, I get the error:

Gradle Failed to update project MyApp: Failed to find com.google.android.gms: play-services: 5.0.77. Required: MyApp: MyApp: undefined

So I tried to change the versions on this line:

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

in

compile 'com.google.android.gms:play-services:5.0.+',
compile 'com.google.android.gms:play-services:4+', 
compile 'com.google.android.gms:play-services:4.0.+',

      

so on, but still getting the same error (only the version changes).

As for reference, my Android Studio version is currently @ 0.5.2 (I can't update yet) The version is 0.9. +.

And a screenshot of my installed packages in Android SDK Manager:

enter image description here

Now I am wondering where exactly is my problem. Also, I don't want to download the Google Play Services JAR file to fix this issue. I want to stick with the official way of implementing this in Android Studio .: D

+3


source to share


1 answer


Install Google Repository

from SDKManager. If you can not find Google Repository

, then update your SDK Tools

, SDK Platform Tools

, SDK Build Tools

in the "Tools"



+5


source







All Articles