Friday, December 14, 2012

Setup Google Play services SDK in Eclipse

The Google Play services SDK is an extension to the Android SDK and is available as a downloadable package from the SDK Manager. The download includes the client library and code samples.

To develop using the Google Play services APIs, you must download the Google Play services SDK. Google Play services is not supported on the Android emulator, a physical device runs Android 2.2 or higher must be used to run and debug apps using Google Play services SDK.

To install Google Play services SDK from Eclipse:

- Window > Android SDK Manager.

- Scroll to the bottom of the package list, select and install Extras > Google Play services.

- Accept and install.

- After installed, import the library project into your workspace. Click File > Import

- Select Android > Existing Android Code into Workspace, and browse to the copy of the library project to import it.

- click Browse to select <android-sdk-folder>/extras/google/google_play_services/libproject/google-play-services_lib, and click Finish.


The series:
A simple example using Google Maps Android API v2, step by step.

8 comments:

Unknown said...
This comment has been removed by the author.
ishar said...

hi android-er

this is great blog...

i have a problem when install google play services..

give a message

"Done Nothing Install"

why can be like this??

Erik said...

hello Ishar Zulfika,

What displayed after done? Have it changed to installed?

I'm not sure your case! May be it have been installed already, or the server is not available at the moment, you can retry later.

ishar said...

i'm trying again install
but still failed download google play services
and display.
"Preparing to install archives
Downloading Google Play services, revision 1
Download interrupted: Connection to http://172.16.1.1:8080 refused
Done. Nothing was installed."

ishar said...

hi eric, my problem is solved

i'm forget, i;m using proxy in Android SDK Manager option..

thanks..

your blog is great...

De Wet said...

Hallo

I came across a problem while installing google play services.
Last night I updated my sdk manager, but the google play services and most of the other stuff in the second pic dont show.

I had the same problem as Ishar but after I closed and open the sdk manager it installed.

I cant seem to find a solution on the internet.

Hope you can help me.
De Wet

Runeshkrishna said...

i cant find google play services in extra folder.......
What should i do ?

Erik said...

hello Runeshkrishna,

You have to install it in SDK Manager first, under Extras > Google Play services.

As shown in the 2nd screenshot.