Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio import Google Play Services project refresh failed

currently I'm trying to import the Google Play Services for my Android project which is created using Android Studio. Now, I read the part where I should start from here and since this one is still using Eclipse I ended up in these steps. Now upon adding the Google Play Services on my app I receive an error saying:

Gradle 'MyApp' project refresh failed: Could not find com.google.android.gms:play-services:5.0.77. Required by: MyApp:myapp:unspecified

So I tried changing the versions on this line:

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

into:

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 cant update yet) Grade ver 0.9.+.

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

enter image description here

Now I'm wondering where exactly my problem is. And additionally I don't want to download a JAR file of the Google Play Services to solve this. I want to stick on the official way for implementing this in Android Studio. :D

like image 314
KaHeL Avatar asked Dec 03 '25 17:12

KaHeL


1 Answers

Install Google Repository from the SDKManager.If you can't find Google Repository then update your SDK Tools,SDK Platform Tools,SDK Build Tools from the Tools section

like image 135
williamj949 Avatar answered Dec 05 '25 07:12

williamj949



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!